recvfrom(): Resource temporarily unavailable

gao651201 2010-12-17 03:50:44
请问大家这个错误可能由哪些原因引起,请尽可能具体些
...全文
1792 3 打赏 收藏 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
gao651201 2010-12-19
  • 打赏
  • 举报
回复
感谢两位,我确实是把socket设置为非阻塞模式了。
justkk 2010-12-17
  • 打赏
  • 举报
回复
你是不是把socket设置为非阻塞模式了,这样没有数据立即可用时,会提示这个错误
手机写程序 2010-12-17
  • 打赏
  • 举报
回复
WSAEWOULDBLOCK
10035
Resource temporarily unavailable.
This error is returned from operations on nonblocking sockets that cannot be completed immediately, for example recv when no data is queued to be read from the socket. It is a nonfatal error, and the operation should be retried later. It is normal for WSAEWOULDBLOCK to be reported as the result from calling connect on a nonblocking SOCK_STREAM socket, since some time must elapse for the connection to be established.

这是win下面的解释.

23,224

社区成员

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

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