Network Component  Version 7.11.0
MDK Middleware for IPv4 and IPv6 Networking
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Error Codes

BSD Socket error codes. More...

Macros

#define BSD_ERROR   (-1)
 BSD Socket Error codes. More...
 
#define BSD_ESOCK   (-2)
 Invalid socket descriptor. More...
 
#define BSD_EINVAL   (-3)
 Invalid parameter. More...
 
#define BSD_ENOTSUP   (-11)
 Operation or feature not supported. More...
 
#define BSD_ENOMEM   (-5)
 Not enough memory. More...
 
#define BSD_ELOCKED   (-7)
 Socket locked by another thread. More...
 
#define BSD_EWOULDBLOCK   (-4)
 Operation would block. More...
 
#define BSD_ETIMEDOUT   (-8)
 Operation timed out. More...
 
#define BSD_EINPROGRESS   (-9)
 Operation in progress. More...
 
#define BSD_ENOTCONN   (-6)
 Socket not connected. More...
 
#define BSD_EISCONN   (-12)
 Socket is connected. More...
 
#define BSD_ECONNREFUSED   (-13)
 Connection rejected by the peer. More...
 
#define BSD_ECONNRESET   (-14)
 Connection reset by the peer. More...
 
#define BSD_ECONNABORTED   (-15)
 Connection aborted locally. More...
 
#define BSD_EALREADY   (-16)
 Connection already in progress. More...
 
#define BSD_EADDRINUSE   (-17)
 Address already in use. More...
 
#define BSD_EDESTADDRREQ   (-18)
 Destination address required. More...
 
#define BSD_EHOSTNOTFOUND   (-10)
 Host not found. More...
 

Description

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 descriptor 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

Macro Definition Documentation

#define BSD_EADDRINUSE   (-17)

Address already in use.

#define BSD_EALREADY   (-16)

Connection already in progress.

#define BSD_ECONNABORTED   (-15)

Connection aborted locally.

#define BSD_ECONNREFUSED   (-13)

Connection rejected by the peer.

#define BSD_ECONNRESET   (-14)

Connection reset by the peer.

#define BSD_EDESTADDRREQ   (-18)

Destination address required.

#define BSD_EHOSTNOTFOUND   (-10)

Host not found.

#define BSD_EINPROGRESS   (-9)

Operation in progress.

#define BSD_EINVAL   (-3)

Invalid parameter.

#define BSD_EISCONN   (-12)

Socket is connected.

#define BSD_ELOCKED   (-7)

Socket locked by another thread.

#define BSD_ENOMEM   (-5)

Not enough memory.

#define BSD_ENOTCONN   (-6)

Socket not connected.

#define BSD_ENOTSUP   (-11)

Operation or feature not supported.

#define BSD_ERROR   (-1)

BSD Socket Error codes.

Unspecified error

#define BSD_ESOCK   (-2)

Invalid socket descriptor.

#define BSD_ETIMEDOUT   (-8)

Operation timed out.

#define BSD_EWOULDBLOCK   (-4)

Operation would block.