CAsyncSocket::Attach

BOOL Attach( SOCKET hSocket, long lEvent = FD_READ | FD_WRITE | FD_OOB | FD_ACCEPT | FD_CONNECT | FD_CLOSE );

Return Value

Nonzero if the function is successful.

Parameters

hSocket

Contains a handle to a socket.

lEvent

A bitmask which specifies a combination of network events in which the application is interested.

Remarks

Call this member function to attach the hSocket handle to an CAsyncSocket object. The SOCKET handle is stored in the object’s m_hSocket data member.

CAsyncSocket OverviewClass MembersHierarchy Chart

See Also   CAsyncSocket::Detach