GNUnet 0.22.2
GNUNET_RESOLVER_RequestHandle Struct Reference

Handle to a request given to the resolver. More...

Collaboration diagram for GNUNET_RESOLVER_RequestHandle:
[legend]

Data Fields

struct GNUNET_RESOLVER_RequestHandlenext
 Next entry in DLL of requests. More...
 
struct GNUNET_RESOLVER_RequestHandleprev
 Previous entry in DLL of requests. More...
 
GNUNET_RESOLVER_AddressCallback addr_callback
 Callback if this is an name resolution request, otherwise NULL. More...
 
GNUNET_RESOLVER_HostnameCallback name_callback
 Callback if this is a reverse lookup request, otherwise NULL. More...
 
void * cls
 Closure for the callbacks. More...
 
struct GNUNET_TIME_Absolute timeout
 When should this request time out? More...
 
struct GNUNET_SCHEDULER_Tasktask
 Task handle for making reply callbacks in numeric lookups asynchronous, and for timeout handling. More...
 
int af
 Desired address family. More...
 
uint32_t id
 Identifies the request. More...
 
int was_transmitted
 Has this request been transmitted to the service? GNUNET_YES if transmitted GNUNET_NO if not transmitted GNUNET_SYSERR when request was canceled. More...
 
int was_queued
 Did we add this request to the queue? More...
 
int direction
 Desired direction (IP to name or name to IP) More...
 
int received_response
 GNUNET_YES if a response was received More...
 
size_t data_len
 Length of the data that follows this struct. More...
 

Detailed Description

Handle to a request given to the resolver.

Can be used to cancel the request prior to the timeout or successful execution. Also used to track our internal state for the request.

Definition at line 103 of file resolver_api.c.

Field Documentation

◆ next

struct GNUNET_RESOLVER_RequestHandle* GNUNET_RESOLVER_RequestHandle::next

Next entry in DLL of requests.

Definition at line 108 of file resolver_api.c.

Referenced by check_disconnect(), and handle_response().

◆ prev

struct GNUNET_RESOLVER_RequestHandle* GNUNET_RESOLVER_RequestHandle::prev

Previous entry in DLL of requests.

Definition at line 113 of file resolver_api.c.

◆ addr_callback

GNUNET_RESOLVER_AddressCallback GNUNET_RESOLVER_RequestHandle::addr_callback

Callback if this is an name resolution request, otherwise NULL.

Definition at line 119 of file resolver_api.c.

Referenced by GNUNET_RESOLVER_ip_get(), handle_response(), loopback_resolution(), and numeric_resolution().

◆ name_callback

GNUNET_RESOLVER_HostnameCallback GNUNET_RESOLVER_RequestHandle::name_callback

Callback if this is a reverse lookup request, otherwise NULL.

Definition at line 125 of file resolver_api.c.

Referenced by GNUNET_RESOLVER_hostname_get(), handle_response(), and numeric_reverse().

◆ cls

◆ timeout

struct GNUNET_TIME_Absolute GNUNET_RESOLVER_RequestHandle::timeout

When should this request time out?

Definition at line 135 of file resolver_api.c.

Referenced by GNUNET_RESOLVER_hostname_get(), and GNUNET_RESOLVER_ip_get().

◆ task

struct GNUNET_SCHEDULER_Task* GNUNET_RESOLVER_RequestHandle::task

Task handle for making reply callbacks in numeric lookups asynchronous, and for timeout handling.

Definition at line 141 of file resolver_api.c.

Referenced by GNUNET_RESOLVER_hostname_get(), GNUNET_RESOLVER_ip_get(), GNUNET_RESOLVER_request_cancel(), handle_lookup_timeout(), loopback_resolution(), numeric_resolution(), and numeric_reverse().

◆ af

◆ id

uint32_t GNUNET_RESOLVER_RequestHandle::id

Identifies the request.

The response will contain this id.

Definition at line 151 of file resolver_api.c.

Referenced by GNUNET_RESOLVER_hostname_get(), GNUNET_RESOLVER_ip_get(), handle_response(), and process_requests().

◆ was_transmitted

int GNUNET_RESOLVER_RequestHandle::was_transmitted

Has this request been transmitted to the service? GNUNET_YES if transmitted GNUNET_NO if not transmitted GNUNET_SYSERR when request was canceled.

Definition at line 159 of file resolver_api.c.

Referenced by GNUNET_RESOLVER_disconnect(), GNUNET_RESOLVER_request_cancel(), handle_lookup_timeout(), handle_response(), loopback_resolution(), numeric_resolution(), process_requests(), and reconnect().

◆ was_queued

int GNUNET_RESOLVER_RequestHandle::was_queued

Did we add this request to the queue?

Definition at line 164 of file resolver_api.c.

Referenced by GNUNET_RESOLVER_hostname_get(), GNUNET_RESOLVER_ip_get(), and GNUNET_RESOLVER_request_cancel().

◆ direction

int GNUNET_RESOLVER_RequestHandle::direction

Desired direction (IP to name or name to IP)

Definition at line 169 of file resolver_api.c.

Referenced by GNUNET_RESOLVER_hostname_get(), GNUNET_RESOLVER_ip_get(), GNUNET_RESOLVER_request_cancel(), handle_lookup_timeout(), and process_requests().

◆ received_response

int GNUNET_RESOLVER_RequestHandle::received_response

GNUNET_YES if a response was received

Definition at line 174 of file resolver_api.c.

Referenced by GNUNET_RESOLVER_hostname_get(), and handle_response().

◆ data_len

size_t GNUNET_RESOLVER_RequestHandle::data_len

Length of the data that follows this struct.

Definition at line 179 of file resolver_api.c.

Referenced by GNUNET_RESOLVER_hostname_get(), GNUNET_RESOLVER_ip_get(), handle_response(), numeric_reverse(), and process_requests().


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