Handle for active NAT registrations. More...
Data Fields | |
const struct GNUNET_CONFIGURATION_Handle * | cfg |
Configuration we use. More... | |
struct GNUNET_MQ_Handle * | mq |
Message queue for communicating with the NAT service. More... | |
struct GNUNET_MessageHeader * | reg |
Our registration message. More... | |
struct AddrEntry * | ae_head |
Head of address DLL. More... | |
struct AddrEntry * | ae_tail |
Tail of address DLL. More... | |
GNUNET_NAT_AddressCallback | address_callback |
Function to call when our addresses change. More... | |
GNUNET_NAT_ReversalCallback | reversal_callback |
Function to call when another peer requests connection reversal. More... | |
void * | callback_cls |
Closure for the various callbacks. More... | |
struct GNUNET_SCHEDULER_Task * | reconnect_task |
Task scheduled to reconnect to the service. More... | |
struct GNUNET_TIME_Relative | reconnect_delay |
How long to wait until we reconnect. More... | |
const struct GNUNET_CONFIGURATION_Handle* GNUNET_NAT_Handle::cfg |
Configuration we use.
Definition at line 76 of file nat_api.c.
Referenced by do_connect(), GNUNET_NAT_AUTO_test_start(), GNUNET_NAT_register(), and GNUNET_NAT_test_start().
struct GNUNET_MQ_Handle* GNUNET_NAT_Handle::mq |
Message queue for communicating with the NAT service.
Definition at line 81 of file nat_api.c.
Referenced by do_connect(), GNUNET_NAT_add_global_address(), GNUNET_NAT_request_reversal(), GNUNET_NAT_stun_handle_packet(), GNUNET_NAT_unregister(), and reconnect().
struct GNUNET_MessageHeader* GNUNET_NAT_Handle::reg |
Our registration message.
Definition at line 86 of file nat_api.c.
Referenced by do_connect(), GNUNET_NAT_register(), and GNUNET_NAT_unregister().
struct AddrEntry* GNUNET_NAT_Handle::ae_head |
Head of address DLL.
Definition at line 91 of file nat_api.c.
Referenced by GNUNET_NAT_test_address(), GNUNET_NAT_unregister(), handle_address_change_notification(), and reconnect().
struct AddrEntry* GNUNET_NAT_Handle::ae_tail |
Tail of address DLL.
Definition at line 96 of file nat_api.c.
Referenced by GNUNET_NAT_unregister(), handle_address_change_notification(), and reconnect().
GNUNET_NAT_AddressCallback GNUNET_NAT_Handle::address_callback |
Function to call when our addresses change.
Definition at line 101 of file nat_api.c.
Referenced by GNUNET_NAT_register(), handle_address_change_notification(), and reconnect().
GNUNET_NAT_ReversalCallback GNUNET_NAT_Handle::reversal_callback |
Function to call when another peer requests connection reversal.
Definition at line 106 of file nat_api.c.
Referenced by GNUNET_NAT_register(), and handle_connection_reversal_request().
void* GNUNET_NAT_Handle::callback_cls |
Closure for the various callbacks.
Definition at line 111 of file nat_api.c.
Referenced by GNUNET_NAT_register(), handle_address_change_notification(), handle_connection_reversal_request(), and reconnect().
struct GNUNET_SCHEDULER_Task* GNUNET_NAT_Handle::reconnect_task |
Task scheduled to reconnect to the service.
Definition at line 116 of file nat_api.c.
Referenced by do_connect(), GNUNET_NAT_unregister(), and reconnect().
struct GNUNET_TIME_Relative GNUNET_NAT_Handle::reconnect_delay |
How long to wait until we reconnect.
Definition at line 121 of file nat_api.c.
Referenced by reconnect().