BSD Socket error codes. More...
Macros | |
#define | BSD_ERROR (-1) |
BSD Socket Error codes. | |
#define | BSD_ESOCK (-2) |
Invalid socket descriptor. | |
#define | BSD_EINVAL (-3) |
Invalid parameter. | |
#define | BSD_ENOTSUP (-11) |
Operation or feature not supported. | |
#define | BSD_ENOMEM (-5) |
Not enough memory. | |
#define | BSD_ELOCKED (-7) |
Socket locked by another thread. | |
#define | BSD_EWOULDBLOCK (-4) |
Operation would block. | |
#define | BSD_ETIMEDOUT (-8) |
Operation timed out. | |
#define | BSD_EINPROGRESS (-9) |
Operation in progress. | |
#define | BSD_ENOTCONN (-6) |
Socket not connected. | |
#define | BSD_EISCONN (-12) |
Socket is connected. | |
#define | BSD_ECONNREFUSED (-13) |
Connection rejected by the peer. | |
#define | BSD_ECONNRESET (-14) |
Connection reset by the peer. | |
#define | BSD_ECONNABORTED (-15) |
Connection aborted locally. | |
#define | BSD_EALREADY (-16) |
Connection already in progress. | |
#define | BSD_EADDRINUSE (-17) |
Address already in use. | |
#define | BSD_EDESTADDRREQ (-18) |
Destination address required. | |
#define | BSD_EHOSTNOTFOUND (-10) |
Host not found. | |
#define | BSD_EMSGSIZE (-19) |
Message too large. | |
BSD Socket error codes.
The Error Codes section lists all the return errors that the BSD functions will return. Error codes are negative numbers. This makes it easy to check errors, when the return code is less than 0.
Error Code | Description |
---|---|
BSD_ERROR | Unspecified error |
BSD_ESOCK | Invalid socket descriptor |
BSD_EINVAL | Invalid parameter |
BSD_ENOTSUP | Operation or feature not supported |
BSD_ENOMEM | Not enough memory |
BSD_ELOCKED | Socket locked by another thread |
BSD_EWOULDBLOCK | Operation would block |
BSD_ETIMEDOUT | Operation timed out |
BSD_EINPROGRESS | Operation in progress |
BSD_ENOTCONN | Socket not connected |
BSD_EISCONN | Socket is connected |
BSD_ECONNREFUSED | Connection rejected by the peer |
BSD_ECONNRESET | Connection reset by the peer |
BSD_ECONNABORTED | Connection aborted locally |
BSD_EALREADY | Connection already in progress |
BSD_EADDRINUSE | Address already in use |
BSD_EDESTADDRREQ | Destination address required |
BSD_EHOSTNOTFOUND | Host not found |
BSD_EMSGSIZE | Message too large |
#define BSD_EADDRINUSE (-17) |
Address already in use.
#define BSD_EALREADY (-16) |
Connection already in progress.
#define BSD_ECONNABORTED (-15) |
Connection aborted locally.
#define BSD_ECONNREFUSED (-13) |
Connection rejected by the peer.
#define BSD_ECONNRESET (-14) |
Connection reset by the peer.
#define BSD_EDESTADDRREQ (-18) |
Destination address required.
#define BSD_EHOSTNOTFOUND (-10) |
Host not found.
#define BSD_EINPROGRESS (-9) |
Operation in progress.
#define BSD_EINVAL (-3) |
Invalid parameter.
#define BSD_EISCONN (-12) |
Socket is connected.
#define BSD_ELOCKED (-7) |
Socket locked by another thread.
#define BSD_EMSGSIZE (-19) |
Message too large.
#define BSD_ENOMEM (-5) |
Not enough memory.
#define BSD_ENOTCONN (-6) |
Socket not connected.
#define BSD_ENOTSUP (-11) |
Operation or feature not supported.
#define BSD_ERROR (-1) |
BSD Socket Error codes.
Unspecified error
#define BSD_ESOCK (-2) |
Invalid socket descriptor.
#define BSD_ETIMEDOUT (-8) |
Operation timed out.
#define BSD_EWOULDBLOCK (-4) |
Operation would block.