CAsyncSocket::Detach
Call this member function to detach the SOCKET handle in the m_hSocket data member from the CAsyncSocket object and set m_hSocket to NULL.
SOCKET Detach( );
Requirements
Header: afxsock.h
Call this member function to detach the SOCKET handle in the m_hSocket data member from the CAsyncSocket object and set m_hSocket to NULL.
SOCKET Detach( );
Header: afxsock.h