Internet Direct (Indy) Version 9.0.1 Beta
TIdTCPConnection.OnDisconnected
Represents the event handler for peer disconnect events.

property OnDisconnected: TNotifyEvent;
Description
OnDisconnected is the TNotifyEvent event handler used to respond to event notifications when the peer is disconnected. OnDisconnected is triggered when the Disconnect method is used to close the socket connection.

An application must assign a procedure to OnDisconnected to allow a response to the event notification.