|
libxmq
Libxmq C API
|
#include <xmq.h>
Public Attributes | |
| void * | reader_state |
| size_t(* | read )(void *reader_state, char *start, char *stop) |
The xmq parser invokes the reader to fetch more data. The reader is resonsible for storing data in the buffer (start <= i < stop) and return the number of bytes stored.
The reader_state is provided from the
You can create your own reader with a function that takes a pointer to the reader state. Returns the number of bytes stored in buffer, maximum stored is stop-start.
| reader_state | points to the reader state |
| read | invoked with the reader state and where to store input data. |
| size_t(* XMQReader::read) (void *reader_state, char *start, char *stop) |
The function to be invoked from the parser to fetch more data to parse.
| void* XMQReader::reader_state |
The reader_state is passed to the read function.