Handle to a request given to the resolver. More...
Data Fields | |
struct GNUNET_RESOLVER_RequestHandle * | next |
Next entry in DLL of requests. More... | |
struct GNUNET_RESOLVER_RequestHandle * | prev |
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_Task * | task |
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... | |
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.
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().
struct GNUNET_RESOLVER_RequestHandle* GNUNET_RESOLVER_RequestHandle::prev |
Previous entry in DLL of requests.
Definition at line 113 of file resolver_api.c.
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().
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().
void* GNUNET_RESOLVER_RequestHandle::cls |
Closure for the callbacks.
Definition at line 130 of file resolver_api.c.
Referenced by check_response(), GNUNET_RESOLVER_hostname_get(), GNUNET_RESOLVER_hostname_resolve(), GNUNET_RESOLVER_ip_get(), handle_lookup_timeout(), handle_response(), loopback_resolution(), mq_error_handler(), numeric_resolution(), numeric_reverse(), and shutdown_task().
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().
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().
int GNUNET_RESOLVER_RequestHandle::af |
Desired address family.
Definition at line 146 of file resolver_api.c.
Referenced by GNUNET_RESOLVER_hostname_get(), GNUNET_RESOLVER_hostname_resolve(), GNUNET_RESOLVER_ip_get(), handle_lookup_timeout(), handle_response(), loopback_resolution(), no_resolve(), numeric_resolution(), numeric_reverse(), and process_requests().
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().
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().
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().
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().
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().
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().