projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Better error handling.
[awesomized/libmemcached]
/
libmemcached
/
server.h
diff --git
a/libmemcached/server.h
b/libmemcached/server.h
index eabf7f0ff95725cf506f892810c68f09a6697711..aadd690fe0714e1b72e77b1081c4827ed074ca46 100644
(file)
--- a/
libmemcached/server.h
+++ b/
libmemcached/server.h
@@
-24,7
+24,7
@@
struct memcached_server_st {
uint32_t cursor_active;
in_port_t port;
int cached_errno;
uint32_t cursor_active;
in_port_t port;
int cached_errno;
-
in
t fd;
+
memcached_socket_
t fd;
uint32_t io_bytes_sent; /* # bytes sent since last read */
uint32_t server_failure_counter;
uint32_t weight;
uint32_t io_bytes_sent; /* # bytes sent since last read */
uint32_t server_failure_counter;
uint32_t weight;
@@
-36,9
+36,9
@@
struct memcached_server_st {
uint32_t read;
uint32_t write;
} io_wait_count;
uint32_t read;
uint32_t write;
} io_wait_count;
- uint8_t major_version;
- uint8_t micro_version;
- uint8_t minor_version;
+ uint8_t major_version;
// Default definition of UINT8_MAX means that it has not been set.
+ uint8_t micro_version;
// ditto
+ uint8_t minor_version;
// ditto
memcached_connection_t type;
char *read_ptr;
char *cached_server_error;
memcached_connection_t type;
char *read_ptr;
char *cached_server_error;
@@
-96,6
+96,13
@@
LIBMEMCACHED_API
memcached_return_t memcached_server_add(memcached_st *ptr,
const char *hostname, in_port_t port);
memcached_return_t memcached_server_add(memcached_st *ptr,
const char *hostname, in_port_t port);
+LIBMEMCACHED_LOCAL
+ memcached_return_t memcached_server_add_parsed(memcached_st *ptr,
+ const char *hostname,
+ size_t hostname_length,
+ in_port_t port,
+ uint32_t weight);
+
LIBMEMCACHED_API
memcached_return_t memcached_server_add_udp_with_weight(memcached_st *ptr,
const char *hostname,
LIBMEMCACHED_API
memcached_return_t memcached_server_add_udp_with_weight(memcached_st *ptr,
const char *hostname,