projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Finally tracked down the oddball valgrind warning that I could never figure
[m6w6/libmemcached]
/
include
/
memcached.h
diff --git
a/include/memcached.h
b/include/memcached.h
index 652a77c55abf3bac6b9645304e9eefe27bf766e1..023ba425e9ce239ec517a1294a88de5ce5ec1934 100644
(file)
--- a/
include/memcached.h
+++ b/
include/memcached.h
@@
-12,6
+12,7
@@
#include <stdlib.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdint.h>
+#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
extern "C" {
@@
-28,7
+29,7
@@
typedef struct memcached_server_st memcached_server_st;
#define HUGE_STRING_LEN 8196
#define MEMCACHED_MAX_KEY 251 /* We add one to have it null terminated */
//#define MEMCACHED_MAX_BUFFER 8196
#define HUGE_STRING_LEN 8196
#define MEMCACHED_MAX_KEY 251 /* We add one to have it null terminated */
//#define MEMCACHED_MAX_BUFFER 8196
-#define MEMCACHED_MAX_BUFFER HUGE_STRING_LEN
*4
+#define MEMCACHED_MAX_BUFFER HUGE_STRING_LEN
typedef enum {
MEMCACHED_SUCCESS,
typedef enum {
MEMCACHED_SUCCESS,
@@
-65,6
+66,8
@@
typedef enum {
MEMCACHED_BEHAVIOR_TCP_NODELAY,
MEMCACHED_BEHAVIOR_MD5_HASHING,
MEMCACHED_BEHAVIOR_KETAMA,
MEMCACHED_BEHAVIOR_TCP_NODELAY,
MEMCACHED_BEHAVIOR_MD5_HASHING,
MEMCACHED_BEHAVIOR_KETAMA,
+ MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE,
+ MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE,
} memcached_behavior;
typedef enum {
} memcached_behavior;
typedef enum {
@@
-129,6
+132,8
@@
struct memcached_st {
char connected;
int my_errno;
unsigned long long flags;
char connected;
int my_errno;
unsigned long long flags;
+ int send_size;
+ int recv_size;
memcached_return warning; /* Future Use */
};
memcached_return warning; /* Future Use */
};