This documentation is archived and is not being maintained.

CAsyncSocket::FromHandle 

Returns a pointer to a CAsyncSocket object.


static CAsyncSocket* PASCAL FromHandle(
   SOCKET hSocket 
);

Parameters

hSocket

Contains a handle to a socket.

A pointer to an CAsyncSocket object, or NULL if there is no CAsyncSocket object attached to hSocket.

When given a SOCKET handle, if a CAsyncSocket object is not attached to the handle, the member function returns NULL.

Show: