You can use two data connection mechanisms with the FTP protocol:
Active client
The client sends a PASV protocol command from the client to the server. The FTP server then sends the port number of its process to the client, and the server listens for the client to make a connection.
Passive client
The client sends the port number of its process to the server. The server sends an acknowledgment when the information is received, and the client listens for the server to make a connection.
You can choose an active or passive client in RWFtpClient methods that initiate data transfer:
If you specify a negative number, the connection is made with an active client, and the port number is chosen algorithmically.
If you specify 0 (the default), the connection is made with a passive client.
If you specify a positive number, the connection is made with an active client.
Copyright © Rogue Wave Software, Inc. All Rights Reserved.
The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.