Internet Direct (Indy) Version 9.0.1 Beta
TIdTunnelSlave.OnDisconnect
Specifies the event handler for server disconnection.

property OnDisconnect: TIdServerThreadEvent;
Description
OnDisconnect is a TIdServerThreadEvent event handler that allows the server to respond to disconnect requests from connections identified by the TIdPeerThread.

OnDisconnect can be used to perform housekeeping and maintenance required to reflect the change in the connection state.

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