GNUnet  0.20.0
GNUNET_TRANSPORT_CoreHandle Struct Reference

Handle for the transport service (includes all of the state for the transport service). More...

Collaboration diagram for GNUNET_TRANSPORT_CoreHandle:
[legend]

Data Fields

void * cls
 Closure for the callbacks. More...
 
struct GNUNET_MQ_MessageHandlerhandlers
 Functions to call for received data (template for new message queues). More...
 
GNUNET_TRANSPORT_NotifyConnect nc_cb
 function to call on connect events More...
 
GNUNET_TRANSPORT_NotifyDisconnect nd_cb
 function to call on disconnect events More...
 
struct GNUNET_MQ_Handlemq
 My client connection to the transport service. More...
 
const struct GNUNET_CONFIGURATION_Handlecfg
 My configuration. More...
 
struct GNUNET_CONTAINER_MultiPeerMapneighbours
 Hash map of the current connected neighbours of this peer. More...
 
struct GNUNET_PeerIdentity self
 Peer identity as assumed by this process, or all zeros. More...
 
struct GNUNET_SCHEDULER_Taskreconnect_task
 ID of the task trying to reconnect to the service. More...
 
struct GNUNET_TIME_Relative reconnect_delay
 Delay until we try to reconnect. More...
 
int check_self
 Should we check that self matches what the service thinks? (if GNUNET_NO, then self is all zeros!). More...
 
GNUNET_TRANSPORT_NotifyExcessBandwidth neb_cb
 function to call on excess bandwidth events More...
 
unsigned int rom_pending
 Internal counter to check how many more receive OK messages this CORE service is allowed to send in total. More...
 

Detailed Description

Handle for the transport service (includes all of the state for the transport service).

Definition at line 109 of file transport_api2_core.c.

Field Documentation

◆ cls

void * GNUNET_TRANSPORT_CoreHandle::cls

◆ handlers

struct GNUNET_MQ_MessageHandler * GNUNET_TRANSPORT_CoreHandle::handlers

Functions to call for received data (template for new message queues).

Definition at line 120 of file transport_api2_core.c.

◆ nc_cb

GNUNET_TRANSPORT_NotifyConnect GNUNET_TRANSPORT_CoreHandle::nc_cb

function to call on connect events

Definition at line 125 of file transport_api2_core.c.

◆ nd_cb

GNUNET_TRANSPORT_NotifyDisconnect GNUNET_TRANSPORT_CoreHandle::nd_cb

function to call on disconnect events

Definition at line 130 of file transport_api2_core.c.

◆ mq

struct GNUNET_MQ_Handle * GNUNET_TRANSPORT_CoreHandle::mq

My client connection to the transport service.

Definition at line 135 of file transport_api2_core.c.

Referenced by do_send().

◆ cfg

const struct GNUNET_CONFIGURATION_Handle * GNUNET_TRANSPORT_CoreHandle::cfg

◆ neighbours

struct GNUNET_CONTAINER_MultiPeerMap * GNUNET_TRANSPORT_CoreHandle::neighbours

Hash map of the current connected neighbours of this peer.

Maps peer identities to struct Neighbour entries.

Definition at line 146 of file transport_api2_core.c.

◆ self

struct GNUNET_PeerIdentity GNUNET_TRANSPORT_CoreHandle::self

Peer identity as assumed by this process, or all zeros.

Definition at line 146 of file transport_api2_core.c.

◆ reconnect_task

struct GNUNET_SCHEDULER_Task * GNUNET_TRANSPORT_CoreHandle::reconnect_task

ID of the task trying to reconnect to the service.

Definition at line 156 of file transport_api2_core.c.

◆ reconnect_delay

struct GNUNET_TIME_Relative GNUNET_TRANSPORT_CoreHandle::reconnect_delay

Delay until we try to reconnect.

Definition at line 156 of file transport_api2_core.c.

◆ check_self

int GNUNET_TRANSPORT_CoreHandle::check_self

Should we check that self matches what the service thinks? (if GNUNET_NO, then self is all zeros!).

Definition at line 167 of file transport_api2_core.c.

◆ neb_cb

GNUNET_TRANSPORT_NotifyExcessBandwidth GNUNET_TRANSPORT_CoreHandle::neb_cb

function to call on excess bandwidth events

Definition at line 148 of file transport_api_core.c.

◆ rom_pending

unsigned int GNUNET_TRANSPORT_CoreHandle::rom_pending

Internal counter to check how many more receive OK messages this CORE service is allowed to send in total.

Just to detect easy cases of protocol violations by the CORE implementation. NOTE: we may want to make this stronger by counting per peer instead of globally.

Definition at line 188 of file transport_api_core.c.


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