Internet Direct (Indy) Version 9.0.2 Beta
TIdFTPServerThread.DataChannelThread
Represents the threaded data channel used for data transmission for an FTP client connection.

property DataChannelThread: TIdDataChannelThread;
Description
DataChannelThread is a TIdDataChannelThread property that represents the threaded data channel used when a threaded FTP client connection needs to read or write data using the FTP STOR, STOU, APPE, RETR, LIST, or NLST command verbs.

DataChannelThread allows the client connection to create and access either an active or a passive connection used for the data channel in the FTP client.

During execution, DataChannelThread uses the Data property to access the TStrings or TStream values used during the data transfer operation. After performing the transfer operation, the socket for the data channel in the thread is disconnected, and the Success or Error message is written using the control channel for the threaded client connection. The data channel thread is stopped after execution of the transfer operation.

DataChannelThread exists for the lifetime of the threaded client connection. It is initalized and started prior to data transfer operations, and suspended when the data transfer operation is completed.