CAsyncSocket::FromHandle

Retourne un pointeur vers un objet d' CAsyncSocket .

static CAsyncSocket* PASCAL FromHandle(
   SOCKET hSocket 
);

Paramètres

  • hSocket
    Contient un handle d'un socket.

Valeur de retour

Un pointeur vers un objet d' CAsyncSocket , ou NULL s'il n'existe aucun objet d' CAsyncSocket attaché à hSocket.

Notes

Une fois donné un handle de tête creuse , si un objet d' CAsyncSocket n'est pas attaché au handle, la fonction membre retourne NULL.

Configuration requise

Header: afxsock.h

Voir aussi

Référence

Classe de CAsyncSocket

Graphique de la hiérarchie

CSocket::FromHandle

CAsyncSocket::Attach

CAsyncSocket::Detach