Socket Return Codes#
Macros#
General error code for unspecified errors.
Error code indicating an invalid socket.
Error code indicating an invalid argument.
Error code indicating that the requested operation is not supported.
Error code indicating that there is not enough memory to perform the requested operation.
Error code indicating that the operation would block or has timed out.
Error code indicating that the operation is in progress.
Error code indicating that the operation has timed out.
Error code indicating that the socket is already connected.
Error code indicating that the socket is not connected.
Error code indicating that the connection was refused by the peer.
Error code indicating that the connection was reset by the peer.
Error code indicating that the connection was aborted locally.
Error code indicating that a connection is already in progress.
Error code indicating that the address is already in use.
Error code indicating that the host was not found.
Macro Definition Documentation#
IOT_SOCKET_ERROR#
#define IOT_SOCKET_ERRORValue:
(-1)
General error code for unspecified errors.
98
of file third_party/iot_socket/include/iot_socket.h
IOT_SOCKET_ESOCK#
#define IOT_SOCKET_ESOCKValue:
(-2)
Error code indicating an invalid socket.
99
of file third_party/iot_socket/include/iot_socket.h
IOT_SOCKET_EINVAL#
#define IOT_SOCKET_EINVALValue:
(-3)
Error code indicating an invalid argument.
100
of file third_party/iot_socket/include/iot_socket.h
IOT_SOCKET_ENOTSUP#
#define IOT_SOCKET_ENOTSUPValue:
(-4)
Error code indicating that the requested operation is not supported.
101
of file third_party/iot_socket/include/iot_socket.h
IOT_SOCKET_ENOMEM#
#define IOT_SOCKET_ENOMEMValue:
(-5)
Error code indicating that there is not enough memory to perform the requested operation.
102
of file third_party/iot_socket/include/iot_socket.h
IOT_SOCKET_EAGAIN#
#define IOT_SOCKET_EAGAINValue:
(-6)
Error code indicating that the operation would block or has timed out.
103
of file third_party/iot_socket/include/iot_socket.h
IOT_SOCKET_EINPROGRESS#
#define IOT_SOCKET_EINPROGRESSValue:
(-7)
Error code indicating that the operation is in progress.
104
of file third_party/iot_socket/include/iot_socket.h
IOT_SOCKET_ETIMEDOUT#
#define IOT_SOCKET_ETIMEDOUTValue:
(-8)
Error code indicating that the operation has timed out.
105
of file third_party/iot_socket/include/iot_socket.h
IOT_SOCKET_EISCONN#
#define IOT_SOCKET_EISCONNValue:
(-9)
Error code indicating that the socket is already connected.
106
of file third_party/iot_socket/include/iot_socket.h
IOT_SOCKET_ENOTCONN#
#define IOT_SOCKET_ENOTCONNValue:
(-10)
Error code indicating that the socket is not connected.
107
of file third_party/iot_socket/include/iot_socket.h
IOT_SOCKET_ECONNREFUSED#
#define IOT_SOCKET_ECONNREFUSEDValue:
(-11)
Error code indicating that the connection was refused by the peer.
108
of file third_party/iot_socket/include/iot_socket.h
IOT_SOCKET_ECONNRESET#
#define IOT_SOCKET_ECONNRESETValue:
(-12)
Error code indicating that the connection was reset by the peer.
109
of file third_party/iot_socket/include/iot_socket.h
IOT_SOCKET_ECONNABORTED#
#define IOT_SOCKET_ECONNABORTEDValue:
(-13)
Error code indicating that the connection was aborted locally.
110
of file third_party/iot_socket/include/iot_socket.h
IOT_SOCKET_EALREADY#
#define IOT_SOCKET_EALREADYValue:
(-14)
Error code indicating that a connection is already in progress.
111
of file third_party/iot_socket/include/iot_socket.h
IOT_SOCKET_EADDRINUSE#
#define IOT_SOCKET_EADDRINUSEValue:
(-15)
Error code indicating that the address is already in use.
112
of file third_party/iot_socket/include/iot_socket.h
IOT_SOCKET_EHOSTNOTFOUND#
#define IOT_SOCKET_EHOSTNOTFOUNDValue:
(-16)
Error code indicating that the host was not found.
113
of file third_party/iot_socket/include/iot_socket.h