Errors
96
SWRU455A – February 2017 – Revised March 2017
Copyright © 2017, Texas Instruments Incorporated
Socket
Table 6-5. Asynchronous Error Events
Error
Handler
Comments
SL_SOCKET_TX_FAILED_EVENT
slcb_SockEvtHdlr
Socket error – include the parameters
status (specified in
and socket
ID)
lists common errors status codes.
Table 6-6. Common Error Status Codes
Error
Value
Comments
SL_ERROR_BSD_SOC_ERROR
–1
General socket error
SL_ERROR_BSD_INEXE
–8
Socket command in execution
SL_ERROR_BSD_EBADF
–9
Bad file number
SL_ERROR_BSD_ENSOCK
–10
The system limit on the total number of open sockets has been reached.
SL_ERROR_BSD_EAGAIN
–11
Try again
SL_ERROR_BSD_ECLOSE
–15
Close socket operation failed to transmit all queued packets.
SL_ERROR_BSD_EINVAL
–22
Invalid argument
SL_ERROR_BSD_EPROTOTYPE
–91
Protocol wrong type for socket
SL_ERROR_BSD_EADDRINUSE
–98
Address is already in use
SL_ERROR_BSD_ENETUNREACH
–101
Network is unreachable
SL_ERROR_BSD_ETIMEDOUT
–110
Connection timed out
SL_ERROR_BSD_ECONNREFUSED
–111
Connection refused
SL_ERROR_BSD_EALREADY
–114
Nonblocking connect in progress, try again