Network Component  Version 7.19.0
MDK Middleware for IPv4 and IPv6 Networking
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...
 
#define BSD_EMSGSIZE   (-19)
 Message too large. 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
BSD_EMSGSIZE Message too large None

Macro Definition Documentation

◆ BSD_EADDRINUSE

#define BSD_EADDRINUSE   (-17)

Address already in use.

◆ BSD_EALREADY

#define BSD_EALREADY   (-16)

Connection already in progress.

◆ BSD_ECONNABORTED

#define BSD_ECONNABORTED   (-15)

Connection aborted locally.

◆ BSD_ECONNREFUSED

#define BSD_ECONNREFUSED   (-13)

Connection rejected by the peer.

◆ BSD_ECONNRESET

#define BSD_ECONNRESET   (-14)

Connection reset by the peer.

◆ BSD_EDESTADDRREQ

#define BSD_EDESTADDRREQ   (-18)

Destination address required.

◆ BSD_EHOSTNOTFOUND

#define BSD_EHOSTNOTFOUND   (-10)

Host not found.

◆ BSD_EINPROGRESS

#define BSD_EINPROGRESS   (-9)

Operation in progress.

◆ BSD_EINVAL

#define BSD_EINVAL   (-3)

Invalid parameter.

◆ BSD_EISCONN

#define BSD_EISCONN   (-12)

Socket is connected.

◆ BSD_ELOCKED

#define BSD_ELOCKED   (-7)

Socket locked by another thread.

◆ BSD_EMSGSIZE

#define BSD_EMSGSIZE   (-19)

Message too large.

◆ BSD_ENOMEM

#define BSD_ENOMEM   (-5)

Not enough memory.

◆ BSD_ENOTCONN

#define BSD_ENOTCONN   (-6)

Socket not connected.

◆ BSD_ENOTSUP

#define BSD_ENOTSUP   (-11)

Operation or feature not supported.

◆ BSD_ERROR

#define BSD_ERROR   (-1)

BSD Socket Error codes.

Unspecified error

◆ BSD_ESOCK

#define BSD_ESOCK   (-2)

Invalid socket descriptor.

◆ BSD_ETIMEDOUT

#define BSD_ETIMEDOUT   (-8)

Operation timed out.

◆ BSD_EWOULDBLOCK

#define BSD_EWOULDBLOCK   (-4)

Operation would block.