当前位置:编程学习 > VC++ >>

vc++的connect返回10035

CSocket对象 刚点击按钮就返回了,不管服务器什么状态,不管是不是有效IP,都返回10035代码。 不是说connect函数是默认阻塞的嘛?怎么那么快就返回了呢?
补充:查了很多,最后说是不需要理会,因为这个10035意思是需要时间完成非阻塞的连接
追问:那么无论服务器什么状态,哪怕IP都是随便写的,也返回10035,怎么回事呢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.
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,