Internet Direct (Indy) Version 9.0.1 Beta
TIdDataChannelThread.SetupDataChannel
Configures the IP address and Port number used for the data channel.

procedure SetupDataChannel(const AIP: String; APort: Integer);
Parameters
const AIP: String
IP Address for the data channel.

APort: Integer
Port number for the data channel.

Description
SetupDataChannel is a procedure that allows the threaded data channel to be configure the socket connection used when the data channel is started or executed. When passive connections are used, SetupDataChannel will assign the IP address and Port number specified in AIP and APort to the BoundIP and BoundPort properties in the TIdSimpleServer object instance that represents the data channel. When active connections are used, SetupDataChannel will assign AIP and APort to the Host and Port properties in the TIdTCPClient object instance that represents the data channel.

SetupDataChannel is used when TIdFTPServer responds to the FTP PORT or PASV command verbs from a thread FTP client connection.