GAI_STRERROR(3) | Library Functions Manual | GAI_STRERROR(3) |
gai_strerror
— get
error message string from EAI_xxx error code
#include
<sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
const char *
gai_strerror
(int
ecode);
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
<netdb.h>
:
EAI_ADDRFAMILY
EAI_AGAIN
EAI_BADFLAGS
EAI_BADHINTS
EAI_FAIL
EAI_FAMILY
EAI_MEMORY
EAI_NODATA
EAI_NONAME
EAI_OVERFLOW
EAI_PROTOCOL
EAI_SERVICE
EAI_SOCKTYPE
EAI_SYSTEM
The gai_strerror
() function 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.
May 21, 2006 | macOS 15.0 |