Internet Direct (Indy) Version 9.0.1 Beta
TIdTCPServer.OnDisconnect
Event handler for peer thread disconnection.

property OnDisconnect: TIdServerThreadEvent;
Description
OnDisconnect is an event handler for a TIdServerThreadEvent. OnDisconnect occurs when the TIdPeerThread attempts to disconnect from a TCP server.

OnDisconnect receives AThread as a parameter, representing the TIdPeerThread thread that is requesting to be disconnected.

Assign a TIdServerThreadEvent event handler procedure to OnDisconnect.