Evo C++ Library v0.5.1
|
#include <evo/ioasync_client.h>
Used by the protocol implementation to write a request to an AsyncClient.
add()
methods to write and build up the request dataPublic Types | |
typedef This | Parent |
Parent AsyncClient type. More... | |
Public Member Functions | |
RequestWriter (Parent &parent, size_t buf_size) | |
Constructor sets up request writer for parent AsyncClient. More... | |
~RequestWriter () | |
Destructor writes and/or queues the request data (as applicable). More... | |
BulkWrite & | add (const char *data, size_t size) |
BulkWrite & | add (char ch) |
BulkWrite & | addsize (size_t size) |
bool | error () const |
BulkWrite & | init (String &str, SizeT size) |
BulkWrite & | init (AsyncBuffers &parent, size_t size) |
char * | ptr () |
Public Attributes | |
Parent & | parent |
Parent AsyncClient for request. More... | |
PreQueueItem | pq |
Request data for prequeue: write buffer, main queue response data. More... | |
Parent AsyncClient type.
|
inline |
Constructor sets up request writer for parent AsyncClient.
parent | Parent AsyncClient to use |
buf_size | Buffer size to use – must be the exact size of the output data to write |
|
inline |
Destructor writes and/or queues the request data (as applicable).
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Parent& parent |
Parent AsyncClient for request.
PreQueueItem pq |
Request data for prequeue: write buffer, main queue response data.