~dave-terei/libmemcached/sasl-fixes

« back to all changes in this revision

Viewing changes to clients/ms_conn.h

  • Committer: Brian Aker
  • Date: 2010-01-19 19:10:54 UTC
  • Revision ID: brian@gaz-20100119191054-2r6rz05sts319vac
Compiles.

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
 */
118
118
typedef struct conn
119
119
{
120
 
  int conn_idx;             /* connection index in the thread */
 
120
  uint32_t conn_idx;             /* connection index in the thread */
121
121
  int sfd;                  /* current tcp sock handler of the connection structure */
122
122
  int udpsfd;               /* current udp sock handler of the connection structure*/
123
123
  int state;                /* state of the connection */
127
127
  bool change_sfd;          /* whether change sfd */
128
128
 
129
129
  int *tcpsfd;              /* TCP sock array */
130
 
  int total_sfds;           /* how many socks in the tcpsfd array */
131
 
  int alive_sfds;           /* alive socks */
132
 
  int cur_idx;              /* current sock index in tcpsfd array */
 
130
  uint32_t total_sfds;           /* how many socks in the tcpsfd array */
 
131
  uint32_t alive_sfds;           /* alive socks */
 
132
  uint32_t cur_idx;              /* current sock index in tcpsfd array */
133
133
 
134
134
  ms_cmdstat_t precmd;      /* previous command state */
135
135
  ms_cmdstat_t currcmd;     /* current command state */
159
159
  int msgbytes;             /* number of bytes in current msg */
160
160
 
161
161
  /* data for UDP clients */
162
 
  int udp;                          /* is this is a UDP "connection" */
 
162
  bool udp;                          /* is this is a UDP "connection" */
163
163
  uint32_t request_id;                   /* UDP request ID of current operation, if this is a UDP "connection" */
164
164
  uint8_t *hdrbuf;                  /* udp packet headers */
165
165
  int hdrsize;                      /* number of headers' worth of space is allocated */