50 /** DNS resolver */ |
50 /** DNS resolver */ |
51 _ERR_RESOLVER = 0x000200, |
51 _ERR_RESOLVER = 0x000200, |
52 ERR_GETADDRINFO, |
52 ERR_GETADDRINFO, |
53 ERR_GETADDRINFO_EMPTY, |
53 ERR_GETADDRINFO_EMPTY, |
54 |
54 |
55 /** @see sock_error_code*/ |
55 /** socket/IO errors */ |
56 _ERR_SOCK = 0x000300, |
56 _ERR_SOCK = 0x000300, |
|
57 ERR_SOCKET, ///< socket(2) failed |
|
58 ERR_CONNECT, ///< connect(2) error - either direct or async |
|
59 ERR_READ, ///< read(2) error - will probably show up as an ERR_WRITE as well |
|
60 ERR_READ_EOF, ///< EOF on read(2) |
|
61 ERR_WRITE, ///< write(2) error - data was unsent, will probably show up as an ERR_READ as well |
|
62 ERR_WRITE_EOF, ///< write(2) gave EOF - zero bytes written |
|
63 ERR_FCNTL, ///< fcntl(2) failed |
|
64 ERR_CLOSE, ///< close(2) failed, some written data was probably not sent |
|
65 ERR_GETSOCKOPT, ///< getsockopt(2) failed |
|
66 ERR_OPEN, ///< open(2) failed |
57 |
67 |
58 /** @see sock_gnutls_error_code */ |
68 /** @see sock_gnutls_error_code */ |
59 _ERR_GNUTLS = 0x000400, |
69 _ERR_GNUTLS = 0x000400, |
60 |
70 |
61 /** Libevent errors */ |
71 /** Libevent errors */ |
114 ERR_PCRE_EXEC, ///< pcre_exec: <error code> |
124 ERR_PCRE_EXEC, ///< pcre_exec: <error code> |
115 |
125 |
116 /** str errors */ |
126 /** str errors */ |
117 _ERR_STR = 0x000f00, |
127 _ERR_STR = 0x000f00, |
118 |
128 |
|
129 /** Transport errors */ |
|
130 _ERR_TRANSPORT = 0x001000, |
|
131 |
119 /** General errors */ |
132 /** General errors */ |
120 _ERR_GENERAL = 0xffff00, |
133 _ERR_GENERAL = 0xffff00, |
121 ERR_CMD_OPT, |
134 ERR_CMD_OPT, |
122 ERR_UNKNOWN, |
135 ERR_UNKNOWN, |
123 ERR_DUP_NAME, |
136 ERR_DUP_NAME, |
|
137 ERR_EOF, |
124 |
138 |
125 }; |
139 }; |
126 |
140 |
127 /** |
141 /** |
128 * Table of error descriptions |
142 * Table of error descriptions |