Topic Path: Symbol Reference > Classes > TIdTelnet Class > TIdTelnet Properties > OnDisconnect Property
TIdTelnet.OnDisconnect Property

Specifies the event handler for disconnection requests.

property OnDisconnect: TIdNotifyEvent;

OnDisconnect is a TNotifyEvent property representing the event handler used to respond to client disconnection requests. OnDisconnect is triggered from the Disconnect method after terminating the TelnetThread and closing the socket connection. 

Applications should assign a procedure to the OnDisconnect event handler to perform processing required after closing the socket connection.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.