Jump to content


Photo

FXP transfer and progress monitoring


  • Please log in to reply
3 replies to this topic

#1 JimM

JimM
  • Members
  • 9 posts

Posted 24 March 2009 - 09:26 AM

This follows on from a post I read in the pre-sales forum..

I would like to monitor progress of fxp transfers by the suggested route of monitoring the destination file size periodically (this being the only way to do it?).

When I start the FXPFile method, then it blocks till completed, so I have put that into a background worker thread (I'm using c# vs2008).

If I want to monitor progress, would I then start a new connection to the destination ftp server in my main thread and send a destination file size request via the GetFileSize method?

How would I then get the result as it's going to take some time? Do I have to check the .LastFileSize periodically, or is there an event I can look for?

Apologies if these are basic questions!

Jim

#2 mb

mb

    Developer

  • Administrators
  • 11521 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 24 March 2009 - 10:05 AM

Hello ..

Yes that's exactly what you would need to do: Open an extra connection to the destination and use the GetFileSize method periodically. The result of the GetFileSize method is saved in the LastFileSize property.

Regards,
Mat

#3 JimM

JimM
  • Members
  • 9 posts

Posted 24 March 2009 - 10:52 AM

Hello ..

Yes that's exactly what you would need to do: Open an extra connection to the destination and use the GetFileSize method periodically. The result of the GetFileSize method is saved in the LastFileSize property.

Regards,
Mat


So, does GetFileSize block until it gets a filesize result from the server? - (presumably with a timeout if it doesn't get an answer?)

Is there an asynchronous way of getting the file size?

Jim

#4 mb

mb

    Developer

  • Administrators
  • 11521 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 24 March 2009 - 11:16 AM

All the functions are blocking. But GetFileSize() is fast and you get the result immediately.

Regards,
Mat




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users