CSocket::Attach

This method attaches an hSocket handle to a CSocket object. The SOCKET handle is stored in the object's m_hSocket data member.

At a Glance

Header file: Afxsock.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 2.0 and later
Complete documentation Visual C++ documentation

Syntax

BOOL Attach( SOCKET hSocket );

See Also

CAsynCSocket::Attach, CAsynCSocket::m_hSocket