~mingqiangzhuang/libmemcached/icc-memslap

« back to all changes in this revision

Viewing changes to clients/ms_conn.h

  • Committer: Brian Aker
  • Date: 2010-01-19 04:59:05 UTC
  • mfrom: (753.1.1 libmemcached)
  • Revision ID: brian@gaz-20100119045905-e6vjp6lcp0b7bymi
Merge memslap

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#define UDP_MAX_SEND_PAYLOAD_SIZE    1400                 /* mtu size is 1500 */
31
31
#define UDP_HEADER_SIZE              8                    /* UDP header size */
32
32
#define MAX_SENDBUF_SIZE             (256 * 1024 * 1024)  /* Maximum socket buffer size */
33
 
#define SOCK_WAIT_TIMEOUT            10                   /* maximum waiting time of UDP, 10s */
34
 
#define EVENT_TIMEOUT                10                   /* maximum waiting time of event,10s */
 
33
#define SOCK_WAIT_TIMEOUT            30                   /* maximum waiting time of UDP, 30s */
35
34
#define MAX_UDP_PACKET               (1 << 16)            /* maximum UDP packets, 65536 */
36
35
 
37
36
/* Initial size of the sendmsg() scatter/gather array. */
104
103
enum protocol
105
104
{
106
105
  ascii_prot = 3,           /* ASCII protocol */
107
 
  ascii_udp_prot,           /* ASCII UDP protocol*/
108
106
  binary_prot,              /* binary protocol */
109
107
};
110
108
 
229
227
 
230
228
 
231
229
/* used to send the get command to server */
232
 
int ms_mcd_get(ms_conn_t *c, ms_task_item_t *item, bool verify);
 
230
int ms_mcd_get(ms_conn_t *c, ms_task_item_t *item);
233
231
 
234
232
 
235
233
/* used to send the multi-get command to server */