Call this member function to attach an hSocket handle to a CSocket 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 |
CSocket Overview, CSocket Member Functions, Windows Sockets Classes, CAsyncSocket::Attach, CAsyncSocket::m_hSocket