MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
conn Struct Reference

#include <memcached.h>

Collaboration diagram for conn:

Public Attributes

SOCKET sfd
int nevents
sasl_conn_tsasl_conn
STATE_FUNC state
enum bin_substates substate
struct event event
short ev_flags
short which
char * rbuf
char * rcurr
uint32_t rsize
uint32_t rbytes
char * wbuf
char * wcurr
uint32_t wsize
uint32_t wbytes
STATE_FUNC write_and_go
void * write_and_free
char * ritem
uint32_t rlbytes
void * item
ENGINE_STORE_OPERATION store_op
int sbytes
struct ioveciov
int iovsize
int iovused
struct msghdrmsglist
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
enum network_transport transport
int request_id
struct sockaddr_storage request_addr
socklen_t request_addr_size
unsigned char * hdrbuf
int hdrsize
bool noreply
uint8_t refcount
struct {
   char *   buffer
   size_t   size
   size_t   offset
dynamic_buffer
void * engine_storage
EXTENSION_ASCII_PROTOCOL_DESCRIPTORascii_cmd
protocol_binary_request_header binary_header
uint64_t cas
short cmd
int opaque
int keylen
int list_state
connnext
LIBEVENT_THREADthread
ENGINE_ERROR_CODE aiostat
bool ewouldblock
bool tap_nack_mode
TAP_ITERATOR tap_iterator

Detailed Description

The structure representing a connection into memcached.

Definition at line 274 of file memcached.h.

Member Data Documentation

Current ascii protocol

Definition at line 363 of file memcached.h.

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.

Definition at line 311 of file memcached.h.

char* conn::rbuf

which events were just triggered

Definition at line 287 of file memcached.h.

uint32_t conn::rbytes

total allocated size of rbuf

Definition at line 290 of file memcached.h.

char* conn::rcurr

buffer to read commands into

Definition at line 288 of file memcached.h.

char* conn::ritem

free this memory after finishing writing

Definition at line 300 of file memcached.h.

uint32_t conn::rlbytes

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

Definition at line 301 of file memcached.h.

uint32_t conn::rsize

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

Definition at line 289 of file memcached.h.

char* conn::wbuf

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

Definition at line 292 of file memcached.h.

STATE_FUNC conn::write_and_go

which state to go into after finishing current write

Definition at line 297 of file memcached.h.


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