lwip协议栈函数返回值定义
2012-06-10 13:43
120 查看
转自:/article/2612122.html
作者:zhzht19861011
在lwip1.3.0/src/include/lwip/err.h中定义。
数据类型:typedef s8_t err_t
#define ERR_OK 0 /* 没有错误,万事OK*/
#define ERR_MEM -1 /* 存储器输出错误*/
#define ERR_BUF -2 /* 缓冲区错误*/
#define ERR_RTE -3 /* 路由问题*/
#define ERR_IS_FATAL(e) ((e) < ERR_RTE)
#define ERR_ABRT -4 /* 链接中止*/
#define ERR_RST -5 /* 链接复位*/
#define ERR_CLSD -6 /* 链接关闭*/
#define ERR_CONN -7 /* 不能链接*/
#define ERR_VAL -8 /* 值非法*/
#define ERR_ARG -9 /* 参数非法*/
#define ERR_USE -10 /* 地址正在使用*/
#define ERR_IF -11 /* 底层网络接口错误*/
#define ERR_ISCONN -12 /* 已经链接*/
#define ERR_TIMEOUT -13 /* 超时*/
#define ERR_INPROGRESS -14 /* 操作正在进行*/
作者:zhzht19861011
在lwip1.3.0/src/include/lwip/err.h中定义。
数据类型:typedef s8_t err_t
#define ERR_OK 0 /* 没有错误,万事OK*/
#define ERR_MEM -1 /* 存储器输出错误*/
#define ERR_BUF -2 /* 缓冲区错误*/
#define ERR_RTE -3 /* 路由问题*/
#define ERR_IS_FATAL(e) ((e) < ERR_RTE)
#define ERR_ABRT -4 /* 链接中止*/
#define ERR_RST -5 /* 链接复位*/
#define ERR_CLSD -6 /* 链接关闭*/
#define ERR_CONN -7 /* 不能链接*/
#define ERR_VAL -8 /* 值非法*/
#define ERR_ARG -9 /* 参数非法*/
#define ERR_USE -10 /* 地址正在使用*/
#define ERR_IF -11 /* 底层网络接口错误*/
#define ERR_ISCONN -12 /* 已经链接*/
#define ERR_TIMEOUT -13 /* 超时*/
#define ERR_INPROGRESS -14 /* 操作正在进行*/
相关文章推荐
- [LWIP学习]--tcpip_input,tcpip_inpkt,tcpip_thread函数分析(协议栈入口)
- lwip协议栈函数返回值定义
- 【Linux 内核网络协议栈源码剖析】sendto 函数剖析
- LwIP 协议栈源码详解 ——TCP/IP 协议的实现(三:动态内存管理)
- LwIP 协议栈源码详解 ——TCP/IP 协议的实现(六:网络接口结构)
- LwIP(V1.0.0) RAW API函数源码分析1----tcp_new()函数
- lwip中pbuf_alloc()内存申请函数
- zigbee协议栈 中断服务函数定义方法
- ping lwip网络协议栈 分析(三)
- ZigBee密西西比协议栈的中断回调usrSlowTimerInt()函数
- lwip协议栈学习---udp
- 终于找到最全的(LwIP协议栈学习--内存管理)
- LWIP 无OS RAW-API 函数
- LwIP 协议栈源码详解 ——TCP/IP 协议的实现(七:以太网数据接收)
- 【Linux 内核网络协议栈源码剖析】bind 函数剖析
- [LWIP学习]--bind函数分析
- lwip协议栈
- lwIP(V1.0.0) RAW API函数源码分析2----tcp_bind()函数
- 4、 LwIP协议栈规范翻译——流程模型
- lwIP(TCP/IP)协议栈移植(不包括网卡驱动)