libfetch 0.0.0
A lightweight asynchronous HTTP/1.1 client library implementing a subset of the WHATWG Fetch API.
Loading...
Searching...
No Matches
dns_result_t Struct Reference

Structure containing DNS resolution results. More...

#include <dns.h>

Data Fields

dns_address_taddresses
 
size_t count
 
int error_code
 
char * hostname
 

Detailed Description

Structure containing DNS resolution results.

This structure is passed to the callback function and contains all resolved addresses for a hostname, along with error information.

Field Documentation

◆ addresses

dns_address_t* dns_result_t::addresses

Array of resolved addresses

◆ count

size_t dns_result_t::count

Number of addresses in the array

◆ error_code

int dns_result_t::error_code

Error code (0 on success)

◆ hostname

char* dns_result_t::hostname

Copy of the resolved hostname


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