projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Remove use of system(). Not very portable
[awesomized/libmemcached]
/
libmemcached
/
server.h
diff --git
a/libmemcached/server.h
b/libmemcached/server.h
index 44a32bba46c0627329994e17dbabad9fb08c414d..2206c7b852475898ff5505f2d6426bbd68d6a77e 100644
(file)
--- a/
libmemcached/server.h
+++ b/
libmemcached/server.h
@@
-15,22
+15,27
@@
struct memcached_server_st {
struct {
struct memcached_server_st {
struct {
- bool is_allocated
MEMCACHED_BITFIELD
;
- bool is_initialized
MEMCACHED_BITFIELD
;
- bool sockaddr_inited
MEMCACHED_BITFIELD
;
- bool is_shutting_down
MEMCACHED_BITFIELD
;
+ bool is_allocated
:1
;
+ bool is_initialized
:1
;
+ bool sockaddr_inited
:1
;
+ bool is_shutting_down
:1
;
} options;
uint32_t number_of_hosts;
uint32_t cursor_active;
in_port_t port;
int cached_errno;
} options;
uint32_t number_of_hosts;
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;
struct { // Place any "state" sort variables in here.
uint32_t io_bytes_sent; /* # bytes sent since last read */
uint32_t server_failure_counter;
uint32_t weight;
struct { // Place any "state" sort variables in here.
- bool is_corked;
+ bool is_corked:1;
+ bool is_dead:1;
} state;
} state;
+ struct {
+ 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;
uint8_t micro_version;
uint8_t minor_version;