CHttpServer::OnDisconnect Method  
 
virtual void OnDisconnect(
  UINT nClientId  
);

A virtual method that is invoked immediately before the client is disconnected from the server.

Parameters

nClientId
An unsigned integer which uniquely identifies the client session.

Return Value

None.

Remarks

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

This is an advisory event and it is not required for the application to explicitly disconnect the client or perform any action. The event handler cannot prevent the client from disconnecting. Applications that implement a handler for this event should only use it to update any private data that was associated with the client session.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools11.h
Import Library: cshtsv11.lib

See Also

OnConnect