Internet Direct (Indy) Version 9.0.1 Beta
TIdDataChannelThread.Create
Constructor for the object instance.

constructor Create(APASV: Boolean; AControlConnection: TIdTCPServerConnection);
Parameters
APASV: Boolean
Indicate if passive connections are used to open the data channel.

AControlConnection: TIdTCPServerConnection
Threaded FTP client connection that is the control channel for the FTP session.

Description
Create is the constructor for the object instance, and calls the inherited Create method. Create also sets properties for the threaded data channel, including the following:

Create also allocates resources need for object properties, including:

When the threaded data channel uses Passive connections, as indicated in APASV, DataChannel will refer to a TIdSimpleServer object instance bound to the IP address used in the ControlChannel for the thread. When active connections are used, DataChannel will refer to a TIdTCPClient bound to port number 20, as required by the FTP protocol.