mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-28 09:19:53 +00:00
Add a new err_t, ERR_WOULDBLOCK in preparation for non-blocking send
This commit is contained in:
parent
0f05a6aede
commit
49c6ce3703
@ -48,14 +48,15 @@ static const char *err_strerr[] = {
|
|||||||
"Routing problem.", /* ERR_RTE -4 */
|
"Routing problem.", /* ERR_RTE -4 */
|
||||||
"Operation in progress.", /* ERR_INPROGRESS -5 */
|
"Operation in progress.", /* ERR_INPROGRESS -5 */
|
||||||
"Illegal value.", /* ERR_VAL -6 */
|
"Illegal value.", /* ERR_VAL -6 */
|
||||||
"Connection aborted.", /* ERR_ABRT -7 */
|
"Operation would block.", /* ERR_WOULDBLOCK -7 */
|
||||||
"Connection reset.", /* ERR_RST -8 */
|
"Connection aborted.", /* ERR_ABRT -8 */
|
||||||
"Connection closed.", /* ERR_CLSD -9 */
|
"Connection reset.", /* ERR_RST -9 */
|
||||||
"Not connected.", /* ERR_CONN -10 */
|
"Connection closed.", /* ERR_CLSD -10 */
|
||||||
"Illegal argument.", /* ERR_ARG -11 */
|
"Not connected.", /* ERR_CONN -11 */
|
||||||
"Address in use.", /* ERR_USE -12 */
|
"Illegal argument.", /* ERR_ARG -12 */
|
||||||
"Low-level netif error.", /* ERR_IF -13 */
|
"Address in use.", /* ERR_USE -13 */
|
||||||
"Already connected.", /* ERR_ISCONN -14 */
|
"Low-level netif error.", /* ERR_IF -14 */
|
||||||
|
"Already connected.", /* ERR_ISCONN -15 */
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -130,14 +130,15 @@ static const int err_to_errno_table[] = {
|
|||||||
EHOSTUNREACH, /* ERR_RTE -4 Routing problem. */
|
EHOSTUNREACH, /* ERR_RTE -4 Routing problem. */
|
||||||
EINPROGRESS, /* ERR_INPROGRESS -5 Operation in progress */
|
EINPROGRESS, /* ERR_INPROGRESS -5 Operation in progress */
|
||||||
EINVAL, /* ERR_VAL -6 Illegal value. */
|
EINVAL, /* ERR_VAL -6 Illegal value. */
|
||||||
ECONNABORTED, /* ERR_ABRT -7 Connection aborted. */
|
EWOULDBLOCK, /* ERR_WOULBLOCK -7 Operation would block. */
|
||||||
ECONNRESET, /* ERR_RST -8 Connection reset. */
|
ECONNABORTED, /* ERR_ABRT -8 Connection aborted. */
|
||||||
ESHUTDOWN, /* ERR_CLSD -9 Connection closed. */
|
ECONNRESET, /* ERR_RST -9 Connection reset. */
|
||||||
ENOTCONN, /* ERR_CONN -10 Not connected. */
|
ESHUTDOWN, /* ERR_CLSD -10 Connection closed. */
|
||||||
EIO, /* ERR_ARG -11 Illegal argument. */
|
ENOTCONN, /* ERR_CONN -11 Not connected. */
|
||||||
EADDRINUSE, /* ERR_USE -12 Address in use. */
|
EIO, /* ERR_ARG -12 Illegal argument. */
|
||||||
-1, /* ERR_IF -13 Low-level netif error */
|
EADDRINUSE, /* ERR_USE -13 Address in use. */
|
||||||
-1, /* ERR_ISCONN -14 Already connected. */
|
-1, /* ERR_IF -14 Low-level netif error */
|
||||||
|
-1, /* ERR_ISCONN -15 Already connected. */
|
||||||
};
|
};
|
||||||
|
|
||||||
#define ERR_TO_ERRNO_TABLE_SIZE \
|
#define ERR_TO_ERRNO_TABLE_SIZE \
|
||||||
|
@ -56,20 +56,21 @@ typedef s8_t err_t;
|
|||||||
#define ERR_RTE -4 /* Routing problem. */
|
#define ERR_RTE -4 /* Routing problem. */
|
||||||
#define ERR_INPROGRESS -5 /* Operation in progress */
|
#define ERR_INPROGRESS -5 /* Operation in progress */
|
||||||
#define ERR_VAL -6 /* Illegal value. */
|
#define ERR_VAL -6 /* Illegal value. */
|
||||||
|
#define ERR_WOULBLOCK -7 /* Operation would block. */
|
||||||
|
|
||||||
#define ERR_IS_FATAL(e) ((e) < ERR_VAL)
|
#define ERR_IS_FATAL(e) ((e) < ERR_VAL)
|
||||||
|
|
||||||
#define ERR_ABRT -7 /* Connection aborted. */
|
#define ERR_ABRT -8 /* Connection aborted. */
|
||||||
#define ERR_RST -8 /* Connection reset. */
|
#define ERR_RST -9 /* Connection reset. */
|
||||||
#define ERR_CLSD -9 /* Connection closed. */
|
#define ERR_CLSD -10 /* Connection closed. */
|
||||||
#define ERR_CONN -10 /* Not connected. */
|
#define ERR_CONN -11 /* Not connected. */
|
||||||
|
|
||||||
#define ERR_ARG -11 /* Illegal argument. */
|
#define ERR_ARG -12 /* Illegal argument. */
|
||||||
|
|
||||||
#define ERR_USE -12 /* Address in use. */
|
#define ERR_USE -13 /* Address in use. */
|
||||||
|
|
||||||
#define ERR_IF -13 /* Low-level netif error */
|
#define ERR_IF -14 /* Low-level netif error */
|
||||||
#define ERR_ISCONN -14 /* Already connected. */
|
#define ERR_ISCONN -15 /* Already connected. */
|
||||||
|
|
||||||
|
|
||||||
#ifdef LWIP_DEBUG
|
#ifdef LWIP_DEBUG
|
||||||
|
Loading…
Reference in New Issue
Block a user