1 #ifndef PIERROR_H
2 #define PIERROR_H
3 /*=========================================================================*\
4 * Error messages
5 * Defines platform independent error messages
6 \*=========================================================================*/
7 
8 #define PIE_HOST_NOT_FOUND "host not found"
9 #define PIE_ADDRINUSE      "address already in use"
10 #define PIE_ISCONN         "already connected"
11 #define PIE_ACCESS         "permission denied"
12 #define PIE_CONNREFUSED    "connection refused"
13 #define PIE_CONNABORTED    "closed"
14 #define PIE_CONNRESET      "closed"
15 #define PIE_TIMEDOUT       "timeout"
16 #define PIE_AGAIN          "temporary failure in name resolution"
17 #define PIE_BADFLAGS       "invalid value for ai_flags"
18 #define PIE_BADHINTS       "invalid value for hints"
19 #define PIE_FAIL           "non-recoverable failure in name resolution"
20 #define PIE_FAMILY         "ai_family not supported"
21 #define PIE_MEMORY         "memory allocation failure"
22 #define PIE_NONAME         "host or service not provided, or not known"
23 #define PIE_OVERFLOW       "argument buffer overflow"
24 #define PIE_PROTOCOL       "resolved protocol is unknown"
25 #define PIE_SERVICE        "service not supported for socket type"
26 #define PIE_SOCKTYPE       "ai_socktype not supported"
27 
28 #endif
29