CInternetServer::OnDisconnect Method  
 
virtual void OnDisconnect(
  SOCKET hSocket  
);

A virtual method that is invoked when a client disconnects from the server.

Parameters

hSocket
A handle to the client socket.

Return Value

None.

Remarks

The OnDisconnect event handler is invoked when a client disconnects from the server, immediately before the client session is terminated. To implement an event handler, the application should create a class derived from the CInternetServer class, and then override this method.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cswsock11.h
Import Library: cswskv11.lib
Unicode: Implemented as Unicode and ANSI versions

See Also

Disconnect, OnConnect