63int getaddrinfo(
const char *nodename,
const char *servname,
69# define EAI_MEMORY -10
void freeaddrinfo(struct addrinfo *ai)
see 'man freeaddrinfo'
const char * gai_strerror(int __ecode)
see 'man gai_strerror'
int getaddrinfo(const char *nodename, const char *servname, const struct addrinfo *hints, struct addrinfo **res)
see 'man getaddrinfo'
uint32_t socklen_t
type of sockaddr lenth
Structure to contain information about address of a service provider.
struct sockaddr * ai_addr
Socket address for socket.
char * ai_canonname
Canonical name for service location.
int ai_socktype
Socket type.
int ai_protocol
Protocol for socket.
socklen_t ai_addrlen
Length of socket address.
struct addrinfo * ai_next
Pointer to next in list.
int ai_family
Protocol family for socket.