BOOL Attach( SOCKET hSocket );
Return Value
Nonzero if the function is successful.
Parameters
hSocket
Contains a handle to a socket.
Remarks
Call this member function to attach the hSocket handle to a CSocket object. The SOCKET handle is stored in the object’s m_hSocket data member.
For more information, see Windows Sockets: Using Sockets with Archives and related articles in Visual C++ Programmer’s Guide. Also see Windows Sockets Programming Considerations in the Win32 SDK documentation.
CSocket Overview | Class Members | Hierarchy Chart
See Also CAsyncSocket::Attach