> So that's why it doesn't work on Windows, I think I should find some > way to make a socket unblocking after its creation. Unfortunally this way seems to be wrong. Error codes for winsockets and BSD-sockets are different.