各位大虾:
    新年好!在这祝大家在新的一年里,事业蒸蒸日上!
    我在跟踪socket传输时,发现send函数老是出现个错误,使用WSAGetLastError()这个错误返回函数,它的返回值是10035。这是什么错误呢?

解决方案 »

  1.   

    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.
      

  2.   

    呵呵...非云,能不能给弄成中文。这玩意看着晕。
    我后来也查过相关资料:case 10035 error = Operation would block
      

  3.   

    如果你的socket是非阻塞的,这个错误是很正常的
      

  4.   

    你的socket是非堵赛的socket,最好在FD_WRITE事件满足的情况下调用send
      

  5.   

    看来winsock1.1满足不了我的要求了,还是要应用更多的2.0版本的扩展函数。谢谢大家的帮助,我一定会开发出一个高效率的TCP传输软件,到时候和大家共享