projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Big fix for async mode to make sure all data has been pushed through socket
[m6w6/libmemcached]
/
lib
/
common.h
diff --git
a/lib/common.h
b/lib/common.h
index d4a7baca7a002676e0607ca3287626122cca49b8..5c2d2682e3a59e01995167f4f322e52b24d847ef 100644
(file)
--- a/
lib/common.h
+++ b/
lib/common.h
@@
-19,6
+19,10
@@
#include <assert.h>
#include <time.h>
#include <errno.h>
#include <assert.h>
#include <time.h>
#include <errno.h>
+#include <fcntl.h>
+#include <sys/un.h>
+#include <netinet/tcp.h>
+
#include <memcached.h>
#include <memcached.h>
@@
-36,6
+40,11
@@
#define MEMCACHED_BLOCK_SIZE 1024
#define MEMCACHED_BLOCK_SIZE 1024
+typedef enum {
+ MEM_NO_FLUSH,
+ MEM_FLUSH,
+} memcached_flush_action;
+
typedef enum {
MEM_NO_BLOCK= (1 << 0),
MEM_TCP_NODELAY= (1 << 1),
typedef enum {
MEM_NO_BLOCK= (1 << 0),
MEM_TCP_NODELAY= (1 << 1),