GNUnet  0.11.x
Data Fields
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.

Referenced by GNUNET_DEFRAGMENT_context_create(), GNUNET_DEFRAGMENT_process_fragment(), and send_ack().

◆ head

struct MessageContext* GNUNET_DEFRAGMENT_Context::head

Head of list of messages we're defragmenting.

Definition at line 147 of file defragmentation.c.

Referenced by discard_oldest_mc(), and GNUNET_DEFRAGMENT_context_destroy().

◆ tail

struct MessageContext* GNUNET_DEFRAGMENT_Context::tail

Tail of list of messages we're defragmenting.

Definition at line 152 of file defragmentation.c.

Referenced by discard_oldest_mc(), and GNUNET_DEFRAGMENT_context_destroy().

◆ 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(), and send_ack().

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

◆ 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(), and send_ack().

◆ latency

struct GNUNET_TIME_Relative GNUNET_DEFRAGMENT_Context::latency

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

Definition at line 173 of file defragmentation.c.

Referenced by GNUNET_DEFRAGMENT_context_create().

◆ 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.

Referenced by discard_oldest_mc(), and GNUNET_DEFRAGMENT_context_destroy().

◆ 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(), and GNUNET_DEFRAGMENT_process_fragment().


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