Internet Direct (Indy) Version 9.0.2 Beta
TIdTunnelSlave.OnTunnelDisconnect
Specifies the event handler for closing the connection to TIdTunnelMaster.

property OnTunnelDisconnect: TTunnelEvent;
Description
OnTunnelDisconnect is a TTunnelEvent event handler that allows the TIdTunnelSlave to respond to a notification that the TCP tunnel connection for TIdTunnelMaster has been closed.

OnTunnelDisconnect is signalled when the server is no longer accepting connections and has stopped transmitted to existing client connections.

Applications must assign a procedure to the event handler to allow the server to respond to the event notification.