|
libfetch 0.0.0
A lightweight asynchronous HTTP/1.1 client library implementing a subset of the WHATWG Fetch API.
|
Structure containing DNS resolution results. More...
#include <dns.h>
Data Fields | |
| dns_address_t * | addresses |
| size_t | count |
| int | error_code |
| char * | hostname |
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.
| dns_address_t* dns_result_t::addresses |
Array of resolved addresses
| size_t dns_result_t::count |
Number of addresses in the array
| int dns_result_t::error_code |
Error code (0 on success)
| char* dns_result_t::hostname |
Copy of the resolved hostname