GNUnet  0.11.x
Data Fields
Rung Struct Reference

Set of CadetRoutes that have exactly the same number of messages in their buffer. More...

Collaboration diagram for Rung:
[legend]

Data Fields

struct Rungnext
 Rung of RouteDirections with one more buffer entry each. More...
 
struct Rungprev
 Rung of RouteDirections with one less buffer entry each. More...
 
struct RouteDirectionrd_head
 DLL of route directions with a number of buffer entries matching this rung. More...
 
struct RouteDirectionrd_tail
 DLL of route directions with a number of buffer entries matching this rung. More...
 
unsigned int num_routes
 Total number of route directions in this rung. More...
 
unsigned int rung_off
 Number of messages route directions at this rung have in their buffer. More...
 

Detailed Description

Set of CadetRoutes that have exactly the same number of messages in their buffer.

Used so we can efficiently find all of those routes that have the current maximum of messages in the buffer (in case we have to purge).

Definition at line 55 of file gnunet-service-cadet_core.c.

Field Documentation

◆ next

struct Rung* Rung::next

Rung of RouteDirections with one more buffer entry each.

Definition at line 60 of file gnunet-service-cadet_core.c.

Referenced by route_message().

◆ prev

struct Rung* Rung::prev

Rung of RouteDirections with one less buffer entry each.

Definition at line 65 of file gnunet-service-cadet_core.c.

Referenced by lower_rung().

◆ rd_head

struct RouteDirection* Rung::rd_head

DLL of route directions with a number of buffer entries matching this rung.

Definition at line 70 of file gnunet-service-cadet_core.c.

Referenced by destroy_direction(), dir_init(), lower_rung(), and route_message().

◆ rd_tail

struct RouteDirection* Rung::rd_tail

DLL of route directions with a number of buffer entries matching this rung.

Definition at line 75 of file gnunet-service-cadet_core.c.

Referenced by destroy_direction(), dir_init(), lower_rung(), and route_message().

◆ num_routes

unsigned int Rung::num_routes

Total number of route directions in this rung.

Definition at line 80 of file gnunet-service-cadet_core.c.

◆ rung_off

unsigned int Rung::rung_off

Number of messages route directions at this rung have in their buffer.

Definition at line 86 of file gnunet-service-cadet_core.c.

Referenced by lower_rung(), and route_message().


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