Context for the core service connection. More...
Data Fields | |
const struct GNUNET_CONFIGURATION_Handle * | cfg |
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_MessageHandler * | handlers |
Function handlers for messages of particular type. More... | |
struct GNUNET_MQ_Handle * | mq |
Our message queue for transmissions to the service. More... | |
struct GNUNET_CONTAINER_MultiPeerMap * | peers |
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_Task * | reconnect_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... | |
Context for the core service connection.
Definition at line 77 of file core_api.c.
const struct GNUNET_CONFIGURATION_Handle* GNUNET_CORE_Handle::cfg |
Configuration we're using.
Definition at line 82 of file core_api.c.
void* GNUNET_CORE_Handle::cls |
Closure for the various callbacks.
Definition at line 87 of file core_api.c.
Referenced by disconnect_and_free_peer_entry(), GNUNET_CORE_connect(), handle_connect_notify(), handle_disconnect_notify(), handle_init_reply(), handle_mq_error(), handle_notify_inbound(), handle_send_ready(), and reconnect_task().
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.
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.
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.
struct GNUNET_MQ_MessageHandler* GNUNET_CORE_Handle::handlers |
Function handlers for messages of particular type.
Definition at line 107 of file core_api.c.
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.
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.
struct GNUNET_PeerIdentity GNUNET_CORE_Handle::me |
Identity of this peer.
Definition at line 123 of file core_api.c.
struct GNUNET_SCHEDULER_Task* GNUNET_CORE_Handle::reconnect_task |
ID of reconnect task (if any).
Definition at line 128 of file core_api.c.
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.
unsigned int GNUNET_CORE_Handle::hcnt |
Number of entries in the handlers array.
Definition at line 138 of file core_api.c.
int GNUNET_CORE_Handle::have_init |
Did we ever get INIT?
Definition at line 143 of file core_api.c.