Internet Direct (Indy)
Home
PreviousUpNext
TIdFTP.OnDataChannelDestroy Event

Event handler signalled prior to freeing the data channel in the FTP client.

Pascal
property OnDataChannelDestroy: TIdOnDataChannelDestroy;

OnDataChannelDestroy is a TIdOnDataChannelDestroy property that represents the event handler signalled prior to freeing resource allocated to the data channel in data transfer operations. 

OnDataChannelDestroy is triggered in the Get and Put methods when the data transfer operation has been completed, and prior to freeing the object instance. 

Arguments passed to the event handler include the FTP client and the data channel instance for the event. 

OnDataChannelDestroy allows the application to perform logging and maintenace required when the FTP client is about to free the data channel used for a data transfer operation. Assign a procedure to the event handler to allow responding to the event notification. 

Use OnDataChannelBegin to respond to the event notification that occurs on after creating and initalizing the data channel.

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.