This member function attaches an hSocket handle to the CAsyncSocket object. The SOCKET handle is stored in the object's m_hSocket data member.
BOOL Attach( SOCKET hSocket );
Header file: | Afxsock.h |
Platforms: | |
Versions: | 2.0 and later |
Complete documentation | Visual C++ documentation |
Because Windows CE does not fully support asynchronous event notification, MFC for Windows CE does not support the lEvent parameter to this function.
CAsyncSocket Overview, CAsyncSocket Member Functions, Windows Sockets Classes, CAsyncSocket::Detach, CAsyncSocket::m_hSocket