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.