get a 10035 error when send data

本文详细解析了10035错误(资源暂时不可用),解释了该错误为何会在非阻塞套接字操作中出现,例如recv函数无法从套接字读取数据的情况。此外还介绍了此错误通常是非致命的,并且在调用connect函数于非阻塞SOCK_STREAM套接字时正常出现的原因。

原文的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.

 

资源暂时不可用。

这个错误在无堵塞的操作上返回,不能够立即完成。 例子:recv函数当套接字读取不到数据的时候。这是一个致命的错误,和操作将会在之后重试。它是普通用于报告在无堵塞流里调用connect套接字的结果,自从一些时间必须用来建立连接。

 

转载于:https://www.cnblogs.com/2wind/p/5633348.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值