Internet Direct (Indy) Version 9.0.2 Beta
|
procedure StartThread(AOperation: TIdFTPOperation);
StartThread determines the socket connection type required for the active or passive client connection, and performs the actions needed to allow the client connection for the DataChannel. When passive connections are used, the TIdSimpleServer object instance in DataChannel will be used to listen for the client connection. When active connections are used, the TIdTCPClient object instance in DataChannel will be connected.
Use SetupDataChannel to configure the IP address and port number to used for the differing client connection types.
If an exceptionm occurs while establishing the connection for DataChannel, the values in ErrorReply are written to the FTP client using the ControlChannel.
When successfully completed, StartThread will begin execution of the threaded data channel for use with FTP data transfer operation.