DNS handle. More...
Data Fields | |
struct GNUNET_MQ_Handle * | mq |
Connection to DNS service, or NULL. More... | |
const struct GNUNET_CONFIGURATION_Handle * | cfg |
Configuration to use. More... | |
GNUNET_DNS_RequestHandler | rh |
Function to call to get replies. More... | |
void * | rh_cls |
Closure for rh. More... | |
struct GNUNET_SCHEDULER_Task * | reconnect_task |
Task to reconnect to the service. More... | |
uint32_t | generation |
Re-connect counter, to make sure we did not reconnect in the meantime. More... | |
enum GNUNET_DNS_Flags | flags |
Flags for events we care about. More... | |
unsigned int | pending_requests |
Number of GNUNET_DNS_RequestHandles we have outstanding. More... | |
struct GNUNET_MQ_Handle* GNUNET_DNS_Handle::mq |
Connection to DNS service, or NULL.
Definition at line 61 of file dns_api.c.
Referenced by force_reconnect(), GNUNET_DNS_disconnect(), GNUNET_DNS_request_answer(), GNUNET_DNS_request_drop(), GNUNET_DNS_request_forward(), and reconnect().
const struct GNUNET_CONFIGURATION_Handle* GNUNET_DNS_Handle::cfg |
Configuration to use.
Definition at line 66 of file dns_api.c.
Referenced by GNUNET_DNS_connect(), and reconnect().
GNUNET_DNS_RequestHandler GNUNET_DNS_Handle::rh |
Function to call to get replies.
Definition at line 71 of file dns_api.c.
Referenced by GNUNET_DNS_connect(), and handle_request().
void* GNUNET_DNS_Handle::rh_cls |
Closure for rh.
Definition at line 76 of file dns_api.c.
Referenced by GNUNET_DNS_connect(), and handle_request().
struct GNUNET_SCHEDULER_Task* GNUNET_DNS_Handle::reconnect_task |
Task to reconnect to the service.
Definition at line 81 of file dns_api.c.
Referenced by force_reconnect(), GNUNET_DNS_connect(), GNUNET_DNS_disconnect(), and reconnect().
uint32_t GNUNET_DNS_Handle::generation |
Re-connect counter, to make sure we did not reconnect in the meantime.
Definition at line 86 of file dns_api.c.
Referenced by GNUNET_DNS_request_answer(), GNUNET_DNS_request_drop(), GNUNET_DNS_request_forward(), handle_request(), and reconnect().
enum GNUNET_DNS_Flags GNUNET_DNS_Handle::flags |
Flags for events we care about.
Definition at line 91 of file dns_api.c.
Referenced by GNUNET_DNS_connect(), and reconnect().
unsigned int GNUNET_DNS_Handle::pending_requests |
Number of GNUNET_DNS_RequestHandles we have outstanding.
Must be 0 before we can be disconnected.
Definition at line 97 of file dns_api.c.
Referenced by GNUNET_DNS_disconnect(), GNUNET_DNS_request_answer(), GNUNET_DNS_request_drop(), GNUNET_DNS_request_forward(), and handle_request().