Big fix for async mode to make sure all data has been pushed through socket
[m6w6/libmemcached] / lib / common.h
index d4a7baca7a002676e0607ca3287626122cca49b8..5c2d2682e3a59e01995167f4f322e52b24d847ef 100644 (file)
 #include <assert.h>
 #include <time.h>
 #include <errno.h>
+#include <fcntl.h>
+#include <sys/un.h>
+#include <netinet/tcp.h>
+
 
 
 #include <memcached.h>
 
 #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),