GNUnet 0.21.1
GNUNET_CORE_Handle Struct Reference

Context for the core service connection. More...

Collaboration diagram for GNUNET_CORE_Handle:
[legend]

Data Fields

const struct GNUNET_CONFIGURATION_Handlecfg
 Configuration we're using. More...
 
void * cls
 Closure for the various callbacks. More...
 
GNUNET_CORE_StartupCallback init
 Function to call once we've handshaked with the core service. More...
 
GNUNET_CORE_ConnectEventHandler connects
 Function to call whenever we're notified about a peer connecting. More...
 
GNUNET_CORE_DisconnectEventHandler disconnects
 Function to call whenever we're notified about a peer disconnecting. More...
 
struct GNUNET_MQ_MessageHandlerhandlers
 Function handlers for messages of particular type. More...
 
struct GNUNET_MQ_Handlemq
 Our message queue for transmissions to the service. More...
 
struct GNUNET_CONTAINER_MultiPeerMappeers
 Hash map listing all of the peers that we are currently connected to. More...
 
struct GNUNET_PeerIdentity me
 Identity of this peer. More...
 
struct GNUNET_SCHEDULER_Taskreconnect_task
 ID of reconnect task (if any). More...
 
struct GNUNET_TIME_Relative retry_backoff
 Current delay we use for re-trying to connect to core. More...
 
unsigned int hcnt
 Number of entries in the handlers array. More...
 
int have_init
 Did we ever get INIT? More...
 

Detailed Description

Context for the core service connection.

Definition at line 77 of file core_api.c.

Field Documentation

◆ cfg

const struct GNUNET_CONFIGURATION_Handle* GNUNET_CORE_Handle::cfg

Configuration we're using.

Definition at line 82 of file core_api.c.

◆ cls

◆ init

GNUNET_CORE_StartupCallback GNUNET_CORE_Handle::init

Function to call once we've handshaked with the core service.

Definition at line 92 of file core_api.c.

◆ connects

GNUNET_CORE_ConnectEventHandler GNUNET_CORE_Handle::connects

Function to call whenever we're notified about a peer connecting.

Definition at line 97 of file core_api.c.

◆ disconnects

GNUNET_CORE_DisconnectEventHandler GNUNET_CORE_Handle::disconnects

Function to call whenever we're notified about a peer disconnecting.

Definition at line 102 of file core_api.c.

◆ handlers

struct GNUNET_MQ_MessageHandler* GNUNET_CORE_Handle::handlers

Function handlers for messages of particular type.

Definition at line 107 of file core_api.c.

◆ mq

struct GNUNET_MQ_Handle* GNUNET_CORE_Handle::mq

Our message queue for transmissions to the service.

Definition at line 112 of file core_api.c.

◆ peers

struct GNUNET_CONTAINER_MultiPeerMap* GNUNET_CORE_Handle::peers

Hash map listing all of the peers that we are currently connected to.

Definition at line 118 of file core_api.c.

◆ me

struct GNUNET_PeerIdentity GNUNET_CORE_Handle::me

Identity of this peer.

Definition at line 123 of file core_api.c.

◆ reconnect_task

struct GNUNET_SCHEDULER_Task* GNUNET_CORE_Handle::reconnect_task

ID of reconnect task (if any).

Definition at line 128 of file core_api.c.

◆ retry_backoff

struct GNUNET_TIME_Relative GNUNET_CORE_Handle::retry_backoff

Current delay we use for re-trying to connect to core.

Definition at line 133 of file core_api.c.

◆ hcnt

unsigned int GNUNET_CORE_Handle::hcnt

Number of entries in the handlers array.

Definition at line 138 of file core_api.c.

◆ have_init

int GNUNET_CORE_Handle::have_init

Did we ever get INIT?

Definition at line 143 of file core_api.c.


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