Login  
Search All Forums
Dart Home | PowerTCP FTP for .NET | Custom Development Reply | PowerTCP FTP for .NET Topics | Forums   
AuthorForum: PowerTCP FTP for .NET
Topic: Resuming an FTP after a dropped connection
wrlucas

From: Gardner, KS USA
Posts: 58
Member Since: 02/13/02
posted March 6, 2003 8:27 PM

Is it possible, using the ftp control, to resume an ftp after a dropped connection and have the ftp start where it left off?

Is it possible to automatically restart the ftp?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 7, 2003 1:21 PM

Hi,
Yes, please see the ListView client sample for an example.
-ken
wrlucas

From: Gardner, KS USA
Posts: 58
Member Since: 02/13/02
posted March 7, 2003 6:01 PM

Unfortunately it is written in C# not VB.NET. 

I did attempt to follow the code and did not see anywhere it was detecting a dropped connection, then trying to reestablish that connection, and upon success resuming the upload.
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 10, 2003 9:23 AM

Hi,
After the connection is closed, make sure Ftp.Restart is true, and call Ftp.Put again. The component will login again, and, if the server supports it, the store or retrieve will be resumed.
-ken
wrlucas

From: Gardner, KS USA
Posts: 58
Member Since: 02/13/02
posted March 10, 2003 11:03 AM

Ok, that seems simple enough.

Since we are setting the ftp site up also, what settings must be set up for the site to support autorestart?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 10, 2003 11:12 AM

Hi,
I do not know about settings for individual servers, but the end result must be that it supports the REST command.
-ken
wrlucas

From: Gardner, KS USA
Posts: 58
Member Since: 02/13/02
posted March 10, 2003 1:04 PM

I think that is about it. One last thing . . .
if ftp.restart = true after the connection is closed, how does it know the difference from a connection closed normally after completing the ftp versus one closed abnormally?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 11, 2003 11:09 AM

Hi,
It does not matter. 
If the size of the file is already what it should be, the control will not do the RETR or STOR.
If it is less than it should be, the transfer will be resumed.
If the file is actually larger, the entire file will be transferred.
-ken
Reply | PowerTCP FTP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX