MySQL  8.0.18
Source Code Documentation
conn Struct Reference

The structure representing a connection into memcached. More...

#include <memcached.h>

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
 which events were just triggered More...
 
char * rcurr
 buffer to read commands into More...
 
uint32_t rsize
 but if we parsed some already, this is where we stopped More...
 
uint32_t rbytes
 total allocated size of rbuf More...
 
char * wbuf
 how much data, starting from rcur, do we have unparsed More...
 
char * wcurr
 
uint32_t wsize
 
uint32_t wbytes
 
STATE_FUNC write_and_go
 which state to go into after finishing current write More...
 
void * write_and_free
 
char * ritem
 free this memory after finishing writing More...
 
uint32_t rlbytes
 when we read in an item's value, it goes here More...
 
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. More...
 
ENGINE_STORE_OPERATION store_op
 
int sbytes
 
struct iovec * iov
 
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_DESCRIPTOR * ascii_cmd
 Current ascii protocol. More...
 
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.

Member Data Documentation

◆ aiostat

ENGINE_ERROR_CODE conn::aiostat

◆ ascii_cmd

EXTENSION_ASCII_PROTOCOL_DESCRIPTOR* conn::ascii_cmd

Current ascii protocol.

◆ binary_header

protocol_binary_request_header conn::binary_header

◆ buffer

char* conn::buffer

◆ cas

uint64_t conn::cas

◆ cmd

short conn::cmd

◆ dynamic_buffer

struct { ... } conn::dynamic_buffer

◆ engine_storage

void* conn::engine_storage

◆ ev_flags

short conn::ev_flags

◆ event

struct event conn::event

◆ ewouldblock

bool conn::ewouldblock

◆ hdrbuf

unsigned char* conn::hdrbuf

◆ hdrsize

int conn::hdrsize

◆ icurr

item** conn::icurr

◆ ileft

int conn::ileft

◆ ilist

item** conn::ilist

◆ iov

struct iovec* conn::iov

◆ iovsize

int conn::iovsize

◆ iovused

int conn::iovused

◆ isize

int conn::isize

◆ item

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.

◆ keylen

int conn::keylen

◆ list_state

int conn::list_state

◆ msgbytes

int conn::msgbytes

◆ msgcurr

int conn::msgcurr

◆ msglist

struct msghdr* conn::msglist

◆ msgsize

int conn::msgsize

◆ msgused

int conn::msgused

◆ nevents

int conn::nevents

◆ next

conn* conn::next

◆ noreply

bool conn::noreply

◆ offset

size_t conn::offset

◆ opaque

int conn::opaque

◆ protocol

enum protocol conn::protocol

◆ rbuf

char* conn::rbuf

which events were just triggered

◆ rbytes

uint32_t conn::rbytes

total allocated size of rbuf

◆ rcurr

char* conn::rcurr

buffer to read commands into

◆ refcount

uint8_t conn::refcount

◆ request_addr

struct sockaddr_storage conn::request_addr

◆ request_addr_size

socklen_t conn::request_addr_size

◆ request_id

int conn::request_id

◆ ritem

char* conn::ritem

free this memory after finishing writing

◆ rlbytes

uint32_t conn::rlbytes

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

◆ rsize

uint32_t conn::rsize

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

◆ sasl_conn

sasl_conn_t* conn::sasl_conn

◆ sbytes

int conn::sbytes

◆ sfd

SOCKET conn::sfd

◆ size

size_t conn::size

◆ state

STATE_FUNC conn::state

◆ store_op

ENGINE_STORE_OPERATION conn::store_op

◆ substate

enum bin_substates conn::substate

◆ suffixcurr

char** conn::suffixcurr

◆ suffixleft

int conn::suffixleft

◆ suffixlist

char** conn::suffixlist

◆ suffixsize

int conn::suffixsize

◆ tap_iterator

TAP_ITERATOR conn::tap_iterator

◆ tap_nack_mode

bool conn::tap_nack_mode

◆ thread

LIBEVENT_THREAD* conn::thread

◆ transport

enum network_transport conn::transport

◆ wbuf

char* conn::wbuf

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

◆ wbytes

uint32_t conn::wbytes

◆ wcurr

char* conn::wcurr

◆ which

short conn::which

◆ write_and_free

void* conn::write_and_free

◆ write_and_go

STATE_FUNC conn::write_and_go

which state to go into after finishing current write

◆ wsize

uint32_t conn::wsize

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