I want to port my code from linux to windows. It is something like this:
void SetNonBlocking( int filehandle ) { int fhFlags; fhFlags = fcntl(fileha
Like this:
ulong arg = 1; ioctlsocket(sock, FIONBIO, &arg);
FIONBIO sets the socket in non-blocking mode. Though you should also use OVERLAPPED io as Will suggests. But overlapping and non-blocking is not the same thing.
FIONBIO