Handle for the transport service (includes all of the state for the transport service). More...
Data Fields | |
void * | cls |
Closure for the callbacks. More... | |
struct GNUNET_MQ_MessageHandler * | handlers |
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_Handle * | mq |
My client connection to the transport service. More... | |
const struct GNUNET_CONFIGURATION_Handle * | cfg |
My configuration. More... | |
struct GNUNET_CONTAINER_MultiPeerMap * | neighbours |
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_Task * | reconnect_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... | |
Handle for the transport service (includes all of the state for the transport service).
Definition at line 109 of file transport_api2_core.c.
void * GNUNET_TRANSPORT_CoreHandle::cls |
Closure for the callbacks.
Definition at line 114 of file transport_api2_core.c.
Referenced by GNUNET_TRANSPORT_core_connect(), handle_connect(), handle_disconnect(), handle_recv(), handle_send_ok(), handle_set_quota(), mq_error_handler(), neighbour_delete(), and reconnect().
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.
GNUNET_TRANSPORT_NotifyConnect GNUNET_TRANSPORT_CoreHandle::nc_cb |
function to call on connect events
Definition at line 125 of file transport_api2_core.c.
GNUNET_TRANSPORT_NotifyDisconnect GNUNET_TRANSPORT_CoreHandle::nd_cb |
function to call on disconnect events
Definition at line 130 of file transport_api2_core.c.
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().
const struct GNUNET_CONFIGURATION_Handle * GNUNET_TRANSPORT_CoreHandle::cfg |
My configuration.
Definition at line 140 of file transport_api2_core.c.
Referenced by gnunet_testing.Peer::__del__(), gnunet_testing.Peer::get_statistics_value(), gnunet_testing.Peer::start(), and gnunet_testing.Peer::stop().
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.
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.
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.
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.
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.
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.
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.