GNUnet  0.20.0
GNUNET_DEFRAGMENT_Context Struct Reference

Defragmentation context (one per connection). More...

Collaboration diagram for GNUNET_DEFRAGMENT_Context:
[legend]

Data Fields

struct GNUNET_STATISTICS_Handlestats
 For statistics. More...
 
struct MessageContexthead
 Head of list of messages we're defragmenting. More...
 
struct MessageContexttail
 Tail of list of messages we're defragmenting. More...
 
void * cls
 Closure for proc and ackp. More...
 
GNUNET_FRAGMENT_MessageProcessor proc
 Function to call with defragmented messages. More...
 
GNUNET_DEFRAGMENT_AckProcessor ackp
 Function to call with acknowledgements. More...
 
struct GNUNET_TIME_Relative latency
 Running average of the latency (delay between messages) for this connection. More...
 
unsigned int num_msgs
 num_msgs how many fragmented messages to we defragment at most at the same time? More...
 
unsigned int list_size
 Current number of messages in the 'struct MessageContext' DLL (smaller or equal to 'num_msgs'). More...
 
uint16_t mtu
 Maximum message size for each fragment. More...
 

Detailed Description

Defragmentation context (one per connection).

Definition at line 137 of file defragmentation.c.

Field Documentation

◆ stats

struct GNUNET_STATISTICS_Handle* GNUNET_DEFRAGMENT_Context::stats

For statistics.

Definition at line 142 of file defragmentation.c.

◆ head

struct MessageContext* GNUNET_DEFRAGMENT_Context::head

Head of list of messages we're defragmenting.

Definition at line 147 of file defragmentation.c.

◆ tail

struct MessageContext* GNUNET_DEFRAGMENT_Context::tail

Tail of list of messages we're defragmenting.

Definition at line 152 of file defragmentation.c.

◆ cls

void* GNUNET_DEFRAGMENT_Context::cls

Closure for proc and ackp.

Definition at line 157 of file defragmentation.c.

Referenced by GNUNET_DEFRAGMENT_context_create().

◆ proc

GNUNET_FRAGMENT_MessageProcessor GNUNET_DEFRAGMENT_Context::proc

Function to call with defragmented messages.

Definition at line 162 of file defragmentation.c.

Referenced by GNUNET_DEFRAGMENT_context_create(), and gnunet_pyexpect.pexpect::spawn().

◆ ackp

GNUNET_DEFRAGMENT_AckProcessor GNUNET_DEFRAGMENT_Context::ackp

Function to call with acknowledgements.

Definition at line 167 of file defragmentation.c.

Referenced by GNUNET_DEFRAGMENT_context_create().

◆ latency

struct GNUNET_TIME_Relative GNUNET_DEFRAGMENT_Context::latency

Running average of the latency (delay between messages) for this connection.

Definition at line 167 of file defragmentation.c.

◆ num_msgs

unsigned int GNUNET_DEFRAGMENT_Context::num_msgs

num_msgs how many fragmented messages to we defragment at most at the same time?

Definition at line 179 of file defragmentation.c.

Referenced by GNUNET_DEFRAGMENT_context_create().

◆ list_size

unsigned int GNUNET_DEFRAGMENT_Context::list_size

Current number of messages in the 'struct MessageContext' DLL (smaller or equal to 'num_msgs').

Definition at line 185 of file defragmentation.c.

◆ mtu

uint16_t GNUNET_DEFRAGMENT_Context::mtu

Maximum message size for each fragment.

Definition at line 190 of file defragmentation.c.

Referenced by GNUNET_DEFRAGMENT_context_create().


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