GNUnet  0.11.x
Data Fields
GNUNET_DNS_Handle Struct Reference

DNS handle. More...

Collaboration diagram for GNUNET_DNS_Handle:
[legend]

Data Fields

struct GNUNET_MQ_Handlemq
 Connection to DNS service, or NULL. More...
 
const struct GNUNET_CONFIGURATION_Handlecfg
 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_Taskreconnect_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...
 

Detailed Description

DNS handle.

Definition at line 56 of file dns_api.c.

Field Documentation

◆ mq

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().

◆ cfg

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().

◆ rh

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().

◆ rh_cls

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().

◆ reconnect_task

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().

◆ generation

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().

◆ flags

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().

◆ pending_requests

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().


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