Network Component  
MDK Middleware for IPv4 and IPv6 Networking
 
Loading...
Searching...
No Matches
Error Codes

BSD Socket error codes. More...

Macros

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

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
BSD_ERROR Unspecified error
BSD_ESOCK Invalid socket descriptor
BSD_EINVAL Invalid parameter
BSD_ENOTSUP Operation or feature not supported
BSD_ENOMEM Not enough memory
BSD_ELOCKED Socket locked by another thread
BSD_EWOULDBLOCK Operation would block
BSD_ETIMEDOUT Operation timed out
BSD_EINPROGRESS Operation in progress
BSD_ENOTCONN Socket not connected
BSD_EISCONN Socket is connected
BSD_ECONNREFUSED Connection rejected by the peer
BSD_ECONNRESET Connection reset by the peer
BSD_ECONNABORTED Connection aborted locally
BSD_EALREADY Connection already in progress
BSD_EADDRINUSE Address already in use
BSD_EDESTADDRREQ Destination address required
BSD_EHOSTNOTFOUND Host not found
BSD_EMSGSIZE Message too large

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.