const
char
*
gai_strerror(
int ecode
)
)
function returns an error message string corresponding to the error code
returned by
getaddrinfo(3)
or
getnameinfo(3).
The following error codes and their meaning are defined in
<netdb.h
>:
EAI_ADDRFAMILY
hostname
not supported
EAI_AGAIN
EAI_BADFLAGS
ai_flags
EAI_BADHINTS
hints
EAI_FAIL
EAI_FAMILY
ai_family
not supported.
EAI_MEMORY
EAI_NODATA
hostname
EAI_NONAME
hostname
or
servname
not provided, or not known
EAI_OVERFLOW
EAI_PROTOCOL
EAI_SERVICE
servname
not supported for
ai_socktype
EAI_SOCKTYPE
ai_socktype
not supported
EAI_SYSTEM
)
returns a pointer to the error message string corresponding to
ecode
.
If
ecode
is out of range, an implementation-specific error message string is returned.