The
gai_strerror ();
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
In netdb.h :
EAI_AGAIN
temporary failure in name resolution
EAI_BADFLAGS
invalid value for
Fa ai_flags
EAI_BADHINTS
invalid value for
Fa hints
EAI_FAIL
non-recoverable failure in name resolution
EAI_FAMILY
Fa ai_family
not supported
EAI_MEMORY
memory allocation failure
EAI_NONAME
Fa hostname
or
Fa servname
not provided, or not known
EAI_OVERFLOW
argument buffer overflow
EAI_PROTOCOL
resolved protocol is unknown
EAI_SERVICE
Fa servname
not supported for
Fa ai_socktype
EAI_SOCKTYPE
Fa ai_socktype
not supported
EAI_SYSTEM
system error returned in
errno
RETURN VALUES
The
gai_strerror ();
function
returns a pointer to the error message string corresponding to
Fa ecode .
If
Fa ecode
is out of range, an implementation-specific error message string is returned.