GNUnet  0.11.x
Data Fields
GNUNET_RESOLVER_GetMessage Struct Reference

Request for the resolver. More...

#include </home/handbook/gnunet/src/util/resolver.h>

Collaboration diagram for GNUNET_RESOLVER_GetMessage:
[legend]

Data Fields

struct GNUNET_MessageHeader header
 Type: GNUNET_MESSAGE_TYPE_RESOLVER_REQUEST. More...
 
int32_t direction
 GNUNET_YES to get hostname from IP, GNUNET_NO to get IP from hostname. More...
 
int32_t af
 Address family to use (AF_INET, AF_INET6 or AF_UNSPEC). More...
 
uint32_t client_id
 identifies the request and is contained in the response message. More...
 

Detailed Description

Request for the resolver.

Followed by either the "struct sockaddr" or the 0-terminated hostname.

The response will be one or more messages of type RESOLVER_RESPONSE, each with the message header immediately followed by the requested data (0-terminated hostname or struct in[6]_addr, depending on direction). The last RESOLVER_RESPONSE will just be a header without any data (used to indicate the end of the list).

Definition at line 43 of file resolver.h.

Field Documentation

◆ header

struct GNUNET_MessageHeader GNUNET_RESOLVER_GetMessage::header

Type: GNUNET_MESSAGE_TYPE_RESOLVER_REQUEST.

Definition at line 48 of file resolver.h.

◆ direction

int32_t GNUNET_RESOLVER_GetMessage::direction

GNUNET_YES to get hostname from IP, GNUNET_NO to get IP from hostname.

Definition at line 54 of file resolver.h.

Referenced by handle_get(), and process_requests().

◆ af

int32_t GNUNET_RESOLVER_GetMessage::af

Address family to use (AF_INET, AF_INET6 or AF_UNSPEC).

Definition at line 59 of file resolver.h.

Referenced by handle_get(), and process_requests().

◆ client_id

uint32_t GNUNET_RESOLVER_GetMessage::client_id

identifies the request and is contained in the response message.

The client has to match response to request by this identifier.

Definition at line 65 of file resolver.h.

Referenced by handle_get(), and process_requests().


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