request Struct Reference

Contains data bound with request processing, eg. More...

List of all members.

Public Attributes

struct event * ev
 Event connected with sending a new request.
struct event * respev
 Event connected with receiving a response.
unsigned int op:2
 Request type identifier.
const char * req
 Request buffer.
int reqsize
 Request size.
struct event_base * base
 Event base with which event ev/respev is connected with.
char * response
 Response buffer.
off_t offset
 How much of the request has been sent so far.
off_t respoffset
 How much of a response has been read so far.
off_t resppos
 How much of a response has been parsed so far.
off_t tokcount
 How many tokens have been parsed so far.
off_t flagpos
 Flag can be found at this position in buffer.
off_t objsizepos
 Object size can be found at this position in buffer.
off_t objpos
 Object can be found at this position in buffer.
off_t mark
 Next response's position in the buffer.


Detailed Description

Contains data bound with request processing, eg.

request header and body, response to be parsed as well as offsets used during parsing response. It also contains all necessary libevent handles.

Definition at line 127 of file client.c.


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

Generated on Fri Jan 8 10:38:13 2010 for dreamcache by  doxygen 1.5.5