[Quote=引用 28 楼 animalgogogo 的回复:]
问个问题WSAAsynSelet函数注册的事件怎么注销啊。
[/Quote]
MSDN:
To cancel all notification indicating that Windows Sockets should send no further messages related to network events on the socket, lEvent is set to zero.
[Quote=引用 15 楼 mscrack 的回复:]
MSDN的意思会不会是指connect成功后, select会把socket过滤在writefds中, 而不是指connect成功后才调用select呢?
connect的函数说明是中也指出,
With a nonblocking socket, the connection attempt cannot be completed immediately. In this case, connect will return SOCKET_ERROR, and WSAGetLastError will return WSAEWOULDBLOCK. In this case, there are three possible scenarios:
Use the select function to determine the completion of the connection request by checking to see if the socket is writeable
MSDN的意思会不会是指connect成功后, select会把socket过滤在writefds中, 而不是指connect成功后才调用select呢?
connect的函数说明是中也指出,
With a nonblocking socket, the connection attempt cannot be completed immediately. In this case, connect will return SOCKET_ERROR, and WSAGetLastError will return WSAEWOULDBLOCK. In this case, there are three possible scenarios:
Use the select function to determine the completion of the connection request by checking to see if the socket is writeable