CAsyncSocket::Attach

This member function attaches an hSocket handle to the CAsyncSocket 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

Remarks

Because Windows CE does not fully support asynchronous event notification, MFC for Windows CE does not support the lEvent parameter to this function.

See Also

CAsyncSocket Overview, CAsyncSocket Member Functions, Windows Sockets Classes, CAsyncSocket::Detach, CAsyncSocket::m_hSocket