Socket Return Codes#

Macros#

#define

General error code for unspecified errors.

#define

Error code indicating an invalid socket.

#define

Error code indicating an invalid argument.

#define

Error code indicating that the requested operation is not supported.

#define

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

#define

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

#define

Error code indicating that the operation is in progress.

#define

Error code indicating that the operation has timed out.

#define

Error code indicating that the socket is already connected.

#define

Error code indicating that the socket is not connected.

#define

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

#define

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

#define

Error code indicating that the connection was aborted locally.

#define

Error code indicating that a connection is already in progress.

#define

Error code indicating that the address is already in use.

#define

Error code indicating that the host was not found.

Macro Definition Documentation#

IOT_SOCKET_ERROR#

#define IOT_SOCKET_ERROR
Value:
(-1)

General error code for unspecified errors.


Definition at line 98 of file third_party/iot_socket/include/iot_socket.h

IOT_SOCKET_ESOCK#

#define IOT_SOCKET_ESOCK
Value:
(-2)

Error code indicating an invalid socket.


Definition at line 99 of file third_party/iot_socket/include/iot_socket.h

IOT_SOCKET_EINVAL#

#define IOT_SOCKET_EINVAL
Value:
(-3)

Error code indicating an invalid argument.


Definition at line 100 of file third_party/iot_socket/include/iot_socket.h

IOT_SOCKET_ENOTSUP#

#define IOT_SOCKET_ENOTSUP
Value:
(-4)

Error code indicating that the requested operation is not supported.


Definition at line 101 of file third_party/iot_socket/include/iot_socket.h

IOT_SOCKET_ENOMEM#

#define IOT_SOCKET_ENOMEM
Value:
(-5)

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


Definition at line 102 of file third_party/iot_socket/include/iot_socket.h

IOT_SOCKET_EAGAIN#

#define IOT_SOCKET_EAGAIN
Value:
(-6)

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


Definition at line 103 of file third_party/iot_socket/include/iot_socket.h

IOT_SOCKET_EINPROGRESS#

#define IOT_SOCKET_EINPROGRESS
Value:
(-7)

Error code indicating that the operation is in progress.


Definition at line 104 of file third_party/iot_socket/include/iot_socket.h

IOT_SOCKET_ETIMEDOUT#

#define IOT_SOCKET_ETIMEDOUT
Value:
(-8)

Error code indicating that the operation has timed out.


Definition at line 105 of file third_party/iot_socket/include/iot_socket.h

IOT_SOCKET_EISCONN#

#define IOT_SOCKET_EISCONN
Value:
(-9)

Error code indicating that the socket is already connected.


Definition at line 106 of file third_party/iot_socket/include/iot_socket.h

IOT_SOCKET_ENOTCONN#

#define IOT_SOCKET_ENOTCONN
Value:
(-10)

Error code indicating that the socket is not connected.


Definition at line 107 of file third_party/iot_socket/include/iot_socket.h

IOT_SOCKET_ECONNREFUSED#

#define IOT_SOCKET_ECONNREFUSED
Value:
(-11)

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


Definition at line 108 of file third_party/iot_socket/include/iot_socket.h

IOT_SOCKET_ECONNRESET#

#define IOT_SOCKET_ECONNRESET
Value:
(-12)

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


Definition at line 109 of file third_party/iot_socket/include/iot_socket.h

IOT_SOCKET_ECONNABORTED#

#define IOT_SOCKET_ECONNABORTED
Value:
(-13)

Error code indicating that the connection was aborted locally.


Definition at line 110 of file third_party/iot_socket/include/iot_socket.h

IOT_SOCKET_EALREADY#

#define IOT_SOCKET_EALREADY
Value:
(-14)

Error code indicating that a connection is already in progress.


Definition at line 111 of file third_party/iot_socket/include/iot_socket.h

IOT_SOCKET_EADDRINUSE#

#define IOT_SOCKET_EADDRINUSE
Value:
(-15)

Error code indicating that the address is already in use.


Definition at line 112 of file third_party/iot_socket/include/iot_socket.h

IOT_SOCKET_EHOSTNOTFOUND#

#define IOT_SOCKET_EHOSTNOTFOUND
Value:
(-16)

Error code indicating that the host was not found.


Definition at line 113 of file third_party/iot_socket/include/iot_socket.h