WSAAsyncSelect
The WSAAsyncSelect function requests Windows message-based notification of network events for a socket.
int WSAAsyncSelect( SOCKET s, HWND hWnd, unsigned int wMsg, long lEvent );
Parameters
-
s
- [in] A descriptor that identifies the socket for which event notification is required. hWnd
- [in] A handle that identifies the window that will receive a message when a network event occurs. wMsg
- [in] A message to be received when a network event occurs. lEvent
- [in] A bitmask that specifies a combination of network events in which the application is interested.