On a blocking socket, the return value indicates success or failure of the connection attempt.With a nonblocking socket, the connection attempt cannot be completed immediately. In this case, connect will return SOCKET_ERROR, and WSAGetLastError will return WSAEWOULDBLOCK.
还有,怎么把accept设为非阻塞?谢谢
明明已经连上了!你是怎么知道连上了的? connect 不是报错吗?
我试着进行收发信息,已经可行了
可能是超时,用getlasterror()看看吧
服务器已经在listen了
但client端在connect时,总是返回10061错误(WSAGetLastError),用Error look看是:
不能做任何连接,因为目标机器积极地拒绝它。是什么意思?
气得我干瞪眼,也没有办法了
不是我不想把它搞定,也不是不想去看一看究竟是怎么回事,可无论如何搞,就是不正确
那还有什么办法?
再说了,msdn上的示例我找不到