现在的位置: 首页 > 综合 > 正文

WSAAsyncSelect的威力

2013年12月12日 ⁄ 综合 ⁄ 共 483字 ⁄ 字号 评论关闭
 

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.

抱歉!评论已关闭.