X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=clients%2Fms_conn.h;h=cf1e8c0fc9c71dace61c4e10aab87a4dc7cb7b71;hb=0bbb14508a90f9af985efc198428e1560ab9b44a;hp=a52a55c95ec62a6f3685e0a394ac092de27be49d;hpb=613d2abe710af39d6daf34673462cd467ed6499a;p=m6w6%2Flibmemcached diff --git a/clients/ms_conn.h b/clients/ms_conn.h index a52a55c9..cf1e8c0f 100644 --- a/clients/ms_conn.h +++ b/clients/ms_conn.h @@ -117,7 +117,7 @@ enum protocol */ typedef struct conn { - int conn_idx; /* connection index in the thread */ + uint32_t conn_idx; /* connection index in the thread */ int sfd; /* current tcp sock handler of the connection structure */ int udpsfd; /* current udp sock handler of the connection structure*/ int state; /* state of the connection */ @@ -127,9 +127,9 @@ typedef struct conn bool change_sfd; /* whether change sfd */ int *tcpsfd; /* TCP sock array */ - int total_sfds; /* how many socks in the tcpsfd array */ - int alive_sfds; /* alive socks */ - int cur_idx; /* current sock index in tcpsfd array */ + uint32_t total_sfds; /* how many socks in the tcpsfd array */ + uint32_t alive_sfds; /* alive socks */ + uint32_t cur_idx; /* current sock index in tcpsfd array */ ms_cmdstat_t precmd; /* previous command state */ ms_cmdstat_t currcmd; /* current command state */ @@ -159,7 +159,7 @@ typedef struct conn int msgbytes; /* number of bytes in current msg */ /* data for UDP clients */ - int udp; /* is this is a UDP "connection" */ + bool udp; /* is this is a UDP "connection" */ uint32_t request_id; /* UDP request ID of current operation, if this is a UDP "connection" */ uint8_t *hdrbuf; /* udp packet headers */ int hdrsize; /* number of headers' worth of space is allocated */