GNUnet 0.22.1
GNUNET_DNSPARSER_UriRecord Struct Reference

Information from URI records (RFC 7553). More...

#include <gnunet_dnsparser_lib.h>

Data Fields

char * target
 URI of the target, where the URI is as specified in RFC 3986. More...
 
uint16_t priority
 Preference for this entry (lower value is higher preference). More...
 
uint16_t weight
 Relative weight for records with the same priority. More...
 

Detailed Description

Information from URI records (RFC 7553).

Definition at line 184 of file gnunet_dnsparser_lib.h.

Field Documentation

◆ target

char* GNUNET_DNSPARSER_UriRecord::target

URI of the target, where the URI is as specified in RFC 3986.

Definition at line 190 of file gnunet_dnsparser_lib.h.

Referenced by dns_string_to_value(), GNUNET_DNSPARSER_duplicate_uri_record(), and process_record().

◆ priority

uint16_t GNUNET_DNSPARSER_UriRecord::priority

Preference for this entry (lower value is higher preference).

Clients will contact hosts from the lowest-priority group first and fall back to higher priorities if the low-priority entries are unavailable.

Definition at line 197 of file gnunet_dnsparser_lib.h.

Referenced by dns_string_to_value(), and process_record().

◆ weight

uint16_t GNUNET_DNSPARSER_UriRecord::weight

Relative weight for records with the same priority.

Clients will use the hosts of the same (lowest) priority with a probability proportional to the weight given.

Definition at line 204 of file gnunet_dnsparser_lib.h.

Referenced by dns_string_to_value(), and process_record().


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