IoT Socket  Version 1.3.0
Simple IP Socket (BSD like)
IoT Socket Return Codes

Socket Return Codes. More...

Macros

#define IOT_SOCKET_ERROR   (-1)
 Unspecified error.
 
#define IOT_SOCKET_ESOCK   (-2)
 Invalid socket.
 
#define IOT_SOCKET_EINVAL   (-3)
 Invalid argument.
 
#define IOT_SOCKET_ENOTSUP   (-4)
 Operation not supported.
 
#define IOT_SOCKET_ENOMEM   (-5)
 Not enough memory.
 
#define IOT_SOCKET_EAGAIN   (-6)
 Operation would block or timed out.
 
#define IOT_SOCKET_EINPROGRESS   (-7)
 Operation in progress.
 
#define IOT_SOCKET_ETIMEDOUT   (-8)
 Operation timed out.
 
#define IOT_SOCKET_EISCONN   (-9)
 Socket is connected.
 
#define IOT_SOCKET_ENOTCONN   (-10)
 Socket is not connected.
 
#define IOT_SOCKET_ECONNREFUSED   (-11)
 Connection rejected by the peer.
 
#define IOT_SOCKET_ECONNRESET   (-12)
 Connection reset by the peer.
 
#define IOT_SOCKET_ECONNABORTED   (-13)
 Connection aborted locally.
 
#define IOT_SOCKET_EALREADY   (-14)
 Connection already in progress.
 
#define IOT_SOCKET_EADDRINUSE   (-15)
 Address in use.
 
#define IOT_SOCKET_EHOSTNOTFOUND   (-16)
 Host not found.
 

Description

Socket Return Codes.

This section lists all the return errors the socket functions will return. The error codes are negative. This makes it easy to check an error when the return code is less than 0.