WM_SOCKET_NOTIFY
The WM_SOCKET_NOTIFY message informs the socket window that a socket event has occurred.
Syntax
WM_SOCKET_NOTIFY
hSocket = (SOCKET) wParam;
lSocketEvent = (long) lParam;
At a Glance
Header file: |
Wcesock.h |
Platforms: |
|
Versions: |
2.0 and later |
Parameters
-
hSocket
-
The socket handle to the socket for which the notification is intended.
-
lSocketEvent
-
A constant value representing the event of which to inform the socket. This parameter can be one of the following values.
-
FD_READ
-
Calls the specified socket's OnReceive function.
-
FD_WRITE
-
Calls the specified socket's OnSend function.
-
FD_OOB
-
Calls the specified socket's OnOutOfBandData function.
-
FD_ACCEPT
-
Calls the specified socket's OnAccept function.
-
FD_CONNECT
-
Calls the specified socket's OnConnect function.
-
FD_CLOSE
-
Calls the specified socket's OnClose function.
Return Value
This message does not return a value.
Remarks
You can only send the WM_SOCKET_NOTIFY message to a window returned by the AfxGetCeSocketWindow WCE MFC global function.
This message is only exposed publicly in Windows CE.
See Also
AfxGetCeSocketWindow, CCeSocket::OnAccept, CCeSocket::OnConnect, CAsyncSocket::OnClose, CAsyncSocket::OnOutOfBandData, CAsyncSocket::OnSend, CAsyncSocket::OnReceive