![]() |
Network Component
Version 7.9.0
MDK Middleware for IPv4 and IPv6 Networking
|
BSD Socket error codes. More...
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 | Legacy Error Code |
---|---|---|
BSD_ERROR | Unspecified error | BSD_ERROR |
BSD_ESOCK | Invalid socket handle | BSD_ERROR_SOCKET |
BSD_EINVAL | Invalid parameter | BSD_ERROR_PARAMETER |
BSD_ENOTSUP | Operation or feature not supported | None |
BSD_ENOMEM | Not enough memory | BSD_ERROR_NOMEMORY |
BSD_ELOCKED | Socket locked by another thread | BSD_ERROR_LOCKED |
BSD_EWOULDBLOCK | Operation would block | BSD_ERROR_WOULDBLOCK |
BSD_ETIMEDOUT | Operation timed out | BSD_ERROR_TIMEOUT |
BSD_EINPROGRESS | Operation in progress | BSD_ERROR_INPROGRESS |
BSD_ENOTCONN | Socket not connected | BSD_ERROR_CLOSED |
BSD_EISCONN | Socket is connected | None |
BSD_ECONNREFUSED | Connection rejected by the peer | None |
BSD_ECONNRESET | Connection reset by the peer | None |
BSD_ECONNABORTED | Connection aborted locally | None |
BSD_EALREADY | Connection already in progress | None |
BSD_EADDRINUSE | Address already in use | None |
BSD_EDESTADDRREQ | Destination address required | None |
BSD_EHOSTNOTFOUND | Host not found | BSD_ERROR_NONAME |