GNUnet  0.10.x
Data Fields
GNUNET_MessageStreamTokenizer Struct Reference

Handle to a message stream tokenizer. More...

Collaboration diagram for GNUNET_MessageStreamTokenizer:
[legend]

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_MessageHeaderhdr
 Beginning of the buffer. More...
 

Detailed Description

Handle to a message stream tokenizer.

Definition at line 43 of file mst.c.

Field Documentation

◆ cb

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().

◆ cb_cls

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().

◆ curr_buf

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_create(), GNUNET_MST_from_buffer(), and GNUNET_MST_read().

◆ off

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().

◆ pos

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().

◆ hdr

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_create(), GNUNET_MST_destroy(), GNUNET_MST_from_buffer(), and GNUNET_MST_read().


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