?急!网络编程,在收发消息的时候返回 errno 为 115 这是什么问题?

javatea_ppl 2006-08-04 11:29:24
查看errno.h文件
#define EINPROGRESS 115 /* Operation now in progress */

请问有可能是什么错引起的?
...全文
463 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
无知者无谓 2006-08-04
  • 打赏
  • 举报
回复
Use
char *strerror(int errnum);

It is defined in string.h, it print a readable string about the errno
yjf7888 2006-08-04
  • 打赏
  • 举报
回复
The socket is marked as nonblocking. The connection cannot be immediately completed. The application program can select the socket for writing during the connection process.

如果你的socket是非阻塞的话,不应该把这个结果看成一个错误。
YanDong_8212 2006-08-04
  • 打赏
  • 举报
回复
If you are using a non-blocking socket and then call connect, it should return -1 and errno=EINPROGRESS.

23,125

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧