Browse Source
read https://msdn.microsoft.com/en-us/library/windows/desktop/ms737625%28v=vs.85%29.aspx from: 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: [Solution] Use the select function to determine the completion of the connection request by checking to see if the socket is writeable. What exactly do we do below ... calls to `select`.pass-iguana-arg
1 changed files with 7 additions and 1 deletions
Loading…
Reference in new issue