Handle to a message stream tokenizer. More...
Data Fields | |
GNUNET_MessageTokenizerCallback | cb |
Function to call on completed messages. More... | |
void * | cb_cls |
Closure for cb. More... | |
size_t | curr_buf |
Size of the buffer (starting at hdr). More... | |
size_t | off |
How many bytes in buffer have we already processed? More... | |
size_t | pos |
How many bytes in buffer are valid right now? More... | |
struct GNUNET_MessageHeader * | hdr |
Beginning of the buffer. More... | |
GNUNET_MessageTokenizerCallback GNUNET_MessageStreamTokenizer::cb |
Function to call on completed messages.
Definition at line 49 of file mst.c.
Referenced by GNUNET_MST_create(), and GNUNET_MST_from_buffer().
void* GNUNET_MessageStreamTokenizer::cb_cls |
Closure for cb.
Definition at line 54 of file mst.c.
Referenced by GNUNET_MST_create(), and GNUNET_MST_from_buffer().
size_t GNUNET_MessageStreamTokenizer::curr_buf |
Size of the buffer (starting at hdr).
Definition at line 59 of file mst.c.
Referenced by GNUNET_MST_from_buffer(), and GNUNET_MST_read().
size_t GNUNET_MessageStreamTokenizer::off |
How many bytes in buffer have we already processed?
Definition at line 64 of file mst.c.
Referenced by GNUNET_MST_from_buffer().
size_t GNUNET_MessageStreamTokenizer::pos |
How many bytes in buffer are valid right now?
Definition at line 69 of file mst.c.
Referenced by GNUNET_MST_from_buffer(), and GNUNET_MST_read().
struct GNUNET_MessageHeader* GNUNET_MessageStreamTokenizer::hdr |
Beginning of the buffer.
Typed like this to force alignment.
Definition at line 74 of file mst.c.
Referenced by GNUNET_MST_destroy(), GNUNET_MST_from_buffer(), and GNUNET_MST_read().