Internet Direct (Indy)
Home
PreviousUpNext
TIdTCPConnection.OnDisconnected Property

Event handler signalled when disconnecting the peer connection.

Pascal
property OnDisconnected: TIdNotifyEvent;

OnDisconnected is a TNotifyEvent property that represents the event handler signalled when disconnecting the peer connection. OnDisconnected is triggered when the Disconnect method is used to close the connection. 

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

Use OnStatus to respond to changes in the connection state. 

Use OnWorkBegin, OnWork, and OnWorkEnd to respond to read or write operations on the connection.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.