GNUnet  0.11.x
Data Fields
GNUNET_SERVER_MessageStreamTokenizer Struct Reference

Handle to a message stream tokenizer. More...

Collaboration diagram for GNUNET_SERVER_MessageStreamTokenizer:
[legend]

Data Fields

GNUNET_SERVER_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 41 of file tcp_server_mst_legacy.c.

Field Documentation

◆ cb

GNUNET_SERVER_MessageTokenizerCallback GNUNET_SERVER_MessageStreamTokenizer::cb

Function to call on completed messages.

Definition at line 46 of file tcp_server_mst_legacy.c.

Referenced by GNUNET_SERVER_mst_create(), and GNUNET_SERVER_mst_receive().

◆ cb_cls

void* GNUNET_SERVER_MessageStreamTokenizer::cb_cls

Closure for cb.

Definition at line 51 of file tcp_server_mst_legacy.c.

Referenced by GNUNET_SERVER_mst_create(), and GNUNET_SERVER_mst_receive().

◆ curr_buf

size_t GNUNET_SERVER_MessageStreamTokenizer::curr_buf

Size of the buffer (starting at hdr).

Definition at line 56 of file tcp_server_mst_legacy.c.

Referenced by GNUNET_SERVER_mst_create(), and GNUNET_SERVER_mst_receive().

◆ off

size_t GNUNET_SERVER_MessageStreamTokenizer::off

How many bytes in buffer have we already processed?

Definition at line 61 of file tcp_server_mst_legacy.c.

Referenced by GNUNET_SERVER_mst_receive().

◆ pos

size_t GNUNET_SERVER_MessageStreamTokenizer::pos

How many bytes in buffer are valid right now?

Definition at line 66 of file tcp_server_mst_legacy.c.

Referenced by GNUNET_SERVER_mst_receive().

◆ hdr

struct GNUNET_MessageHeader* GNUNET_SERVER_MessageStreamTokenizer::hdr

Beginning of the buffer.

Typed like this to force alignment.

Definition at line 71 of file tcp_server_mst_legacy.c.

Referenced by GNUNET_SERVER_mst_create(), GNUNET_SERVER_mst_destroy(), and GNUNET_SERVER_mst_receive().


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