Rnjn
2009-04-07 15:31:04 UTC
How can I determine if the socket has already been put into non-
blocking mode on Windows. I understand that there can be two ways of
doing this on windows
- Call ioctlsocket with FIONBIO command.
- Call WSAAsyncSelect or WSAEventSelect.
I am writing a network library where my library function creates a
socket but the user might use above mentioned ways for putting the
socket into non-blocking mode independent of my library calls. Now
depending on the mode of the socket, my library should behave
differently. ioctlsocket seems to only provide way to set the socket
to blocking mode.
Is there a way of finding out this information?
Continuing in the same vein is there a way of quering the hWnd, wMsg,
and lEvent parameters passed in a WSAAsyncSelect call?
blocking mode on Windows. I understand that there can be two ways of
doing this on windows
- Call ioctlsocket with FIONBIO command.
- Call WSAAsyncSelect or WSAEventSelect.
I am writing a network library where my library function creates a
socket but the user might use above mentioned ways for putting the
socket into non-blocking mode independent of my library calls. Now
depending on the mode of the socket, my library should behave
differently. ioctlsocket seems to only provide way to set the socket
to blocking mode.
Is there a way of finding out this information?
Continuing in the same vein is there a way of quering the hWnd, wMsg,
and lEvent parameters passed in a WSAAsyncSelect call?