Possible Duplicate:
In Win32, is there a way to test if a socket is non-blocking?
On Unix, I can use fcntl().
Are there any Winsock API I can use to check a socket is blocking mode or not?
Winsock unfortunately (and surprisingly) isn't able to do this.