ConOpSys V2970  P004.07
ANVILEX control operating system
Functions | Variables
err.c File Reference
#include "lwip/err.h"
#include "lwip/def.h"
#include "lwip/sys.h"
#include "lwip/errno.h"
Include dependency graph for err.c:

Functions

int err_to_errno (err_t err)
 

Variables

static const int err_to_errno_table []
 

Detailed Description

Error Management module

Function Documentation

◆ err_to_errno()

int err_to_errno ( err_t  err)

Variable Documentation

◆ err_to_errno_table

const int err_to_errno_table[]
static
Initial value:
= {
0,
ENOMEM,
ENOBUFS,
EWOULDBLOCK,
EHOSTUNREACH,
EINPROGRESS,
EINVAL,
EWOULDBLOCK,
EADDRINUSE,
EALREADY,
EISCONN,
ENOTCONN,
-1,
ECONNABORTED,
ECONNRESET,
ENOTCONN,
EIO
}

Table to quickly map an lwIP error (err_t) to a socket error by using -err as an index

Referenced by err_to_errno().