29 #if FNET_CFG_DNS || defined(__DOXYGEN__) 123 #if defined(__cplusplus) 192 #if defined(__cplusplus) fnet_bool_t fnet_dns_is_enabled(fnet_dns_desc_t desc)
Detects if the DNS client service is enabled or disabled.
const fnet_char_t * host_name
Host name to resolve (null-terminated string).
fnet_dns_desc_t fnet_dns_init(struct fnet_dns_params *params)
Initializes the DNS client service and starts the host name resolving.
Initialization parameters for the fnet_dns_init() function.
fnet_uint32_t resolved_addr_ttl
Specifies the time interval (in seconds) that the resolved address may be cached before it should be ...
void(* fnet_dns_callback_resolved_t)(const fnet_dns_resolved_addr_t *addr_list, fnet_size_t addr_list_size, const fnet_char_t *host_name, void *cookie)
Prototype of the DNS-client callback function that is called when the DNS client has completed the re...
unsigned long fnet_size_t
Unsigned integer type representing the size in bytes.
void fnet_dns_release(fnet_dns_desc_t desc)
Aborts the resolving and releases the DNS-client service.
void * fnet_dns_desc_t
DNS client descriptor.
fnet_address_family_t addr_family
Family of the IP Address which is queried.
fnet_dns_callback_resolved_t callback
Pointer to the callback function defined by fnet_dns_callback_resolved_t. It is called when the DNS-c...
Resolved address structure provided by fnet_dns_callback_resolved_t callback function.
char fnet_char_t
Type representing the charecter.
struct fnet_sockaddr dns_server_addr
Socket address of the remote DNS server to connect to. If it is unspecified, any registered DNS ser...
fnet_uint16_t fnet_address_family_t
Address family type.
Socket address structure.
void * cookie
Optional application-specific parameter which is passed to the callback function as input parameter...