lwip_getaddrinfo() function
Translates the name of a service location (for example, a host name) and/or a service name and returns a set of socket addresses and associated information to be used in creating a socket with which to address the specified service. Memory for the result is allocated internally and must be freed by calling lwip_freeaddrinfo()! dns_gethostbyname can return as many address as configured in DNS_MAX_HOST_IP. Also, service names are not supported (only port numbers)! @todo: implement AI_V4MAPPED, AI_ADDRCONFIG
Arguments
nodename
descriptive name or address string of the host (may be NULL -> local address)
servname
port number as string of NULL
hints
structure containing input values that set socktype and protocol
res
pointer to a pointer where to store the result (set to NULL on failure)
Return value
0 on success, non-zero on failure