CAsyncSocket::Close

Consente di socket.

virtual void Close( );

Note

Questa funzione rilascia il descrittore di socket affinché ulteriori riferimenti a verifica un errore all'errore WSAENOTSOCK.Se questo è l'ultimo riferimento a un socket sottostante, le informazioni di denominazione collegate e i dati in coda vengono rimossi.Il distruttore di oggetti socket chiama Chiudi automaticamente.

Per CAsyncSocket, ma non per CSocket, la semantica Chiudi è influenzata dalle opzioni di socket SO_LINGER e SO_DONTLINGER.Per ulteriori informazioni, vedere la funzione membro GetSockOpt.

Requisiti

Header: afxsock.h

Vedere anche

Riferimenti

Classe di CAsyncSocket

Grafico della gerarchia

CAsyncSocket::Accept

CAsyncSocket::CAsyncSocket

CAsyncSocket::IOCtl

CAsyncSocket::GetSockOpt

CAsyncSocket::SetSockOpt

CAsyncSocket::AsyncSelect