GNUnet 0.21.1
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...
 
struct GNUNET_TIME_Absolute restarted_at
 Transport connection started at. More...
 
int check_self
 Should we check that self matches what the service thinks? (if GNUNET_NO, then self is all zeros!). More...
 

Detailed Description

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

Definition at line 108 of file transport_api2_core.c.

Field Documentation

◆ cls

void* GNUNET_TRANSPORT_CoreHandle::cls

Closure for the callbacks.

Definition at line 113 of file transport_api2_core.c.

Referenced by handle_connect(), handle_disconnect(), handle_recv(), handle_send_ok(), mq_error_handler(), neighbour_delete(), and reconnect().

◆ handlers

struct GNUNET_MQ_MessageHandler* GNUNET_TRANSPORT_CoreHandle::handlers

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

Definition at line 119 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 124 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 129 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 134 of file transport_api2_core.c.

Referenced by do_send().

◆ cfg

const struct GNUNET_CONFIGURATION_Handle* GNUNET_TRANSPORT_CoreHandle::cfg

My configuration.

Definition at line 139 of file transport_api2_core.c.

◆ 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 145 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 150 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 155 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 160 of file transport_api2_core.c.

◆ restarted_at

struct GNUNET_TIME_Absolute GNUNET_TRANSPORT_CoreHandle::restarted_at

Transport connection started at.

Definition at line 165 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 171 of file transport_api2_core.c.


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