您的位置:首页 > 其它

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 /* 操作正在进行*/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: