conn Struct Reference

#include <memcached.h>

Collaboration diagram for conn:

Collaboration graph
[legend]

List of all members.

Public Attributes

int sfd
enum conn_states state
enum bin_substates substate
struct event event
short ev_flags
short which
char * rbuf
 which events were just triggered
char * rcurr
 buffer to read commands into
int rsize
 but if we parsed some already, this is where we stopped
int rbytes
 total allocated size of rbuf
char * wbuf
 how much data, starting from rcur, do we have unparsed
char * wcurr
int wsize
int wbytes
enum conn_states write_and_go
 which state to go into after finishing current write
void * write_and_free
char * ritem
 free this memory after finishing writing
int rlbytes
 when we read in an item's value, it goes here
void * item
 item is used to hold an item structure created after reading the command line of set/add/replace commands, but before we finished reading the actual data.
int sbytes
struct iovec * iov
int iovsize
int iovused
struct msghdr * msglist
int msgsize
int msgused
int msgcurr
int msgbytes
item ** ilist
int isize
item ** icurr
int ileft
char ** suffixlist
int suffixsize
char ** suffixcurr
int suffixleft
enum protocol protocol
int request_id
struct sockaddr request_addr
socklen_t request_addr_size
unsigned char * hdrbuf
int hdrsize
bool noreply
struct {
   char *   buffer
   size_t   size
   size_t   offset
stats
protocol_binary_request_header binary_header
uint64_t cas
short cmd
int opaque
int keylen
connnext
LIBEVENT_THREADthread


Member Data Documentation

char* conn::buffer

uint64_t conn::cas

short conn::cmd

struct event conn::event [read]

unsigned char* conn::hdrbuf

struct iovec* conn::iov [read]

void* conn::item

item is used to hold an item structure created after reading the command line of set/add/replace commands, but before we finished reading the actual data.

The data is read into ITEM_data(item) to avoid extra copying.

struct msghdr* conn::msglist [read]

size_t conn::offset

char* conn::rbuf

which events were just triggered

total allocated size of rbuf

char* conn::rcurr

buffer to read commands into

struct sockaddr conn::request_addr [read]

char* conn::ritem

free this memory after finishing writing

when we read in an item's value, it goes here

but if we parsed some already, this is where we stopped

int conn::sfd

size_t conn::size

struct { ... } conn::stats

char* conn::wbuf

how much data, starting from rcur, do we have unparsed

char* conn::wcurr

short conn::which

which state to go into after finishing current write


The documentation for this struct was generated from the following file:

Generated on Fri Apr 17 15:14:54 2009 for memcached by  doxygen 1.5.8