CAsyncSocket::Detach
Visual Studio 2012
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( );
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( );