Internet Direct (Indy) Version 9.0.2 Beta
TIdTunnelMaster.OnDisconnect
Specifies the event handler for terminated client connections.

property OnDisconnect: TIdServerThreadEvent;
Description
OnDisconnect is a TIdServerThreadEvent event handler that allows the tunnel master server to respond to a request to close a connection for the client thread.

OnDisconnect is called from the DoDisconnect method after all service threads and the client connection in Thread have been closed.

Applications must assign a procedure to the OnDisconnect event handler to allow a response to the event notification.