Socket Return Codes#

Macros#

#define
IOT_SOCKET_ERROR (-1)

General error code for unspecified errors.

#define
IOT_SOCKET_ESOCK (-2)

Error code indicating an invalid socket.

#define
IOT_SOCKET_EINVAL (-3)

Error code indicating an invalid argument.

#define
IOT_SOCKET_ENOTSUP (-4)

Error code indicating that the requested operation is not supported.

#define
IOT_SOCKET_ENOMEM (-5)

Error code indicating that there is not enough memory to perform the requested operation.

#define
IOT_SOCKET_EAGAIN (-6)

Error code indicating that the operation would block or has timed out.

#define
IOT_SOCKET_EINPROGRESS (-7)

Error code indicating that the operation is in progress.

#define
IOT_SOCKET_ETIMEDOUT (-8)

Error code indicating that the operation has timed out.

#define
IOT_SOCKET_EISCONN (-9)

Error code indicating that the socket is already connected.

#define
IOT_SOCKET_ENOTCONN (-10)

Error code indicating that the socket is not connected.

#define
IOT_SOCKET_ECONNREFUSED (-11)

Error code indicating that the connection was refused by the peer.

#define
IOT_SOCKET_ECONNRESET (-12)

Error code indicating that the connection was reset by the peer.

#define
IOT_SOCKET_ECONNABORTED (-13)

Error code indicating that the connection was aborted locally.

#define
IOT_SOCKET_EALREADY (-14)

Error code indicating that a connection is already in progress.

#define
IOT_SOCKET_EADDRINUSE (-15)

Error code indicating that the address is already in use.

#define
IOT_SOCKET_EHOSTNOTFOUND (-16)

Error code indicating that the host was not found.