err_to_errno_table variable
Table to quickly map an lwIP error (err_t) to a socket error by using -err as an index
Syntax
static const int err_to_errno_table[] = {
0,
ENOMEM,
ENOBUFS,
EWOULDBLOCK,
EHOSTUNREACH,
EINPROGRESS,
EINVAL,
EWOULDBLOCK,
EADDRINUSE,
EALREADY,
EISCONN,
ENOTCONN,
-1,
ECONNABORTED,
ECONNRESET,
ENOTCONN,
EIO
};