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.