Embedded TCP/IP stack
4.1.0
|
fnet_dns.h
103 typedef void(*fnet_dns_callback_resolved_t)(const struct fnet_dns_resolved_addr *addr_list, fnet_size_t addr_list_size, void *cookie);
fnet_bool_t fnet_dns_is_enabled(fnet_dns_desc_t desc)
Detects if the DNS client service is enabled or disabled.
fnet_uint32_t resolved_addr_ttl
Specifies the time interval (in seconds) that the resolved address may be cached before it should be ...
Definition: fnet_dns.h:79
const fnet_char_t * host_name
Host name to resolve (null-terminated string).
Definition: fnet_dns.h:112
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.
Definition: fnet_dns.h:108
Resolved address structure provided by fnet_dns_callback_resolved_t callback function.
Definition: fnet_dns.h:76
unsigned long fnet_size_t
Unsigned integer type representing the size in bytes.
Definition: fnet_stdlib.h:56
void fnet_dns_release(fnet_dns_desc_t desc)
Aborts the resolving and releases the DNS-client service.
void(* fnet_dns_callback_resolved_t)(const struct fnet_dns_resolved_addr *addr_list, fnet_size_t addr_list_size, void *cookie)
Prototype of the DNS-client callback function that is called when the DNS client has completed the re...
Definition: fnet_dns.h:103
fnet_address_family_t addr_family
Family of the IP Address which is queried.
Definition: fnet_dns.h:113
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...
Definition: fnet_dns.h:114
struct fnet_sockaddr resolved_addr
Socket address of the resolved host name.
Definition: fnet_dns.h:78
void * cookie
Optional application-specific parameter. It's passed to the callback function as input parameter...
Definition: fnet_dns.h:117
© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net