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.
本文介绍了WSAAsyncSelect函数,该函数用于请求Windows消息基网络事件通知。文章详细解释了四个参数:s(套接字描述符)、hWnd(接收消息的窗口句柄)、wMsg(发生网络事件时接收的消息)及lEvent(应用程序感兴趣的网络事件组合)。
2517

被折叠的 条评论
为什么被折叠?



