CAsyncSocket::FromHandle

Restituisce un puntatore a un oggetto CAsyncSocket.

static CAsyncSocket* PASCAL FromHandle(
   SOCKET hSocket 
);

Parametri

  • hSocket
    Contiene l'handle a un socket.

Valore restituito

Un puntatore a un oggetto CAsyncSocket, o NULL se non esiste alcun oggetto CAsyncSocket associato a hSocket.

Note

Se si fornisce un handle SOCKET, se un oggetto CAsyncSocket non è connesso all'handle, la funzione membro restituiscono NULL.

Requisiti

Header: afxsock.h

Vedere anche

Riferimenti

Classe di CAsyncSocket

Grafico della gerarchia

CSocket::FromHandle

CAsyncSocket::Attach

CAsyncSocket::Detach