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_ADDRFAMILYhostname
not supported
EAI_AGAINEAI_BADFLAGSai_flags
EAI_BADHINTShints
EAI_FAILEAI_FAMILYai_family
not supported.
EAI_MEMORYEAI_NODATAhostname
EAI_NONAMEhostname
or
servname
not provided, or not known
EAI_OVERFLOWEAI_PROTOCOLEAI_SERVICEservname
not supported for
ai_socktype
EAI_SOCKTYPEai_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.