CSocket::Attach

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.

Syntax

BOOL Attach( SOCKET hSocket );

At a Glance

Header file: Afxsock.h
Platforms:
Versions: 2.0 and later
Complete documentation Visual C++ documentation

See Also

CSocket Overview, CSocket Member Functions, Windows Sockets Classes, CAsyncSocket::Attach, CAsyncSocket::m_hSocket