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

Referenced by GNUNET_CORE_connect(), and reconnect().

◆ cls

void* GNUNET_CORE_Handle::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.

Referenced by GNUNET_CORE_connect(), and handle_init_reply().

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

Referenced by connect_peer(), and GNUNET_CORE_connect().

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

Referenced by disconnect_and_free_peer_entry(), and GNUNET_CORE_connect().

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

Referenced by connect_peer(), GNUNET_CORE_connect(), GNUNET_CORE_disconnect(), and reconnect().

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

Referenced by core_mq_send_impl(), GNUNET_CORE_connect(), GNUNET_CORE_disconnect(), handle_send_ready(), reconnect(), and reconnect_later().

◆ peers

struct GNUNET_CONTAINER_MultiPeerMap* GNUNET_CORE_Handle::peers

◆ me

struct GNUNET_PeerIdentity GNUNET_CORE_Handle::me

Identity of this peer.

Definition at line 123 of file core_api.c.

Referenced by handle_connect_notify(), handle_disconnect_notify(), and handle_init_reply().

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

Referenced by GNUNET_CORE_disconnect(), reconnect_later(), and reconnect_task().

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

Referenced by handle_init_reply(), and reconnect_later().

◆ hcnt

unsigned int GNUNET_CORE_Handle::hcnt

Number of entries in the handlers array.

Definition at line 138 of file core_api.c.

Referenced by GNUNET_CORE_connect(), and reconnect().

◆ have_init

int GNUNET_CORE_Handle::have_init

Did we ever get INIT?

Definition at line 143 of file core_api.c.

Referenced by handle_init_reply().


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