dns_gethostbyname_addrtype() function
Like dns_gethostbyname, but returned address type can be controlled:
Arguments
hostname
the hostname that is to be queried
addr
pointer to a ip_addr_t where to store the address if it is already cached in the dns_table (only valid if ERR_OK is returned!)
found
a callback function to be called on success, failure or timeout (only if ERR_INPROGRESS is returned!)
callback_arg
argument to pass to the callback function
dns_addrtype
- LWIP_DNS_ADDRTYPE_IPV4_IPV6: try to resolve IPv4 first, try IPv6 if IPv4 fails only - LWIP_DNS_ADDRTYPE_IPV6_IPV4: try to resolve IPv6 first, try IPv4 if IPv6 fails only - LWIP_DNS_ADDRTYPE_IPV4: try to resolve IPv4 only - LWIP_DNS_ADDRTYPE_IPV6: try to resolve IPv6 only
Location | Referrer | Text |
dns.c:1547 | | dns_gethostbyname_addrtype(const char *hostname, ip_addr_t *addr, dns_found_callback found, |
dns.h:111 | | err_t dns_gethostbyname_addrtype(const char *hostname, ip_addr_t *addr, |
api_msg.c:2153 | lwip_netconn_do_gethostbyname() | API_EXPR_DEREF(msg->err) = dns_gethostbyname_addrtype(msg->name, |
dns.c:1529 | dns_gethostbyname() | return dns_gethostbyname_addrtype(hostname, addr, found, callback_arg, LWIP_DNS_ADDRTYPE_DEFAULT); |
Functions calling dns_gethostbyname_addrtype()
Functions called by dns_gethostbyname_addrtype()
dns_gethostbyname_addrtype()
strlen() all items filtered out
Data read by dns_gethostbyname_addrtype()
Data written by dns_gethostbyname_addrtype()
dns_gethostbyname_addrtype()::hostnamelen all items filtered out
dns_gethostbyname_addrtype()
dns_gethostbyname_addrtype()::hostnamelen all items filtered out
Type of dns_gethostbyname_addrtype()
dns_gethostbyname_addrtype()
size_t all items filtered out