windows 2000 , winsock 重叠模型的 客户端 , 连接问题 , 如何控制 connect 超时
1. WSASend 和 WSARecv 均有 重叠结构作为输入,可以通过判断 event对象的信号态 进行等待
WSAConnect函数没有
如何控制 重叠模型 client 端的 connect 超时?
2. ConnectEx 函数 可以接受 重叠结构作为参数, 但是好像 不能用在 windows2000 中
from msdn
ConnectEx
Requirements
Client Requires Windows Vista or Windows XP.
Server Requires Windows Server "Longhorn" or Windows Server 2003.
Header Declared in Mswsock.h.
谢谢 !