Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: How to select a custom port number before RETR
User142

Posts: 18
Member Since: 07/18/01
posted April 3, 2002 12:03 AM

I would like to be able to specify the port number to use during the Retrieve() call when not using Passive mode. E.g. can I intercept the PORT command, replace the value with my own and have the Dart control use this value to open a TCP port and accept the file transfer from the FTP server?
If I use the Command() method with a PORT command string, how do I get the control to open the corresponding TCP socket and get ready to receive the file when I next do a RETR command?

Thanks
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted April 3, 2002 8:45 AM


Hi,
No, it is not possible. You do not have control over the Data connection with the Ftp control.
You could use Command to send PORT and RETR, but you would have to create the connection yourself. You could, for example, use the Daemon and Tcp controls of the Winsock Tool for the connection.
Incidentally, in our new Ftp product for .NET, we do allow you to specify the address and port of the Data Connection.
-ken

K M Drake
Dart Tech Support
User142

Posts: 18
Member Since: 07/18/01
posted April 3, 2002 6:14 PM

Can the FTP for .NET product be used with C++ and VC6 or is it only working with Studio .NET and C# ? Is it just a matter of upgrading from the FTP cotrol I have to the .NET version and change a few lines of C++ COM Code?

Thanks
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted April 4, 2002 10:48 AM


Hi,
Theoretically it can, but it is not something we have tested, or done much research on.
The Ftp.Net component has a different interface than the Ftp ActiveX control. So, aside from the additions required just to make the .Net component work, there would also be changes to your properties, method calls, etc.
-ken

K M Drake
Dart Tech Support
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX