#include <unistd.h>
#include <limits.h>
#include <assert.h>
-#include <time.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/un.h>
#include <netinet/tcp.h>
+#include "libmemcached_config.h"
+
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
#include "libmemcached_probes.h"
#define MEMCACHED_BLOCK_SIZE 1024
+#define MEMCACHED_DEFAULT_COMMAND_SIZE 350
+#define SMALL_STRING_LEN 1024
+#define HUGE_STRING_LEN 8196
+
typedef enum {
MEM_NO_BLOCK= (1 << 0),
MEM_USE_CRC= (1 << 5),
MEM_USE_CACHE_LOOKUPS= (1 << 6),
MEM_SUPPORT_CAS= (1 << 7),
+ MEM_BUFFER_REQUESTS= (1 << 8),
} memcached_flags;
/* Hashing algo */
char *buffer,
memcached_result_st *result,
unsigned int server_key);
+void server_list_free(memcached_st *ptr, memcached_server_st *servers);
#endif /* __COMMON_H__ */