Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

idelsoni

Posts

8

Joined

Fri Jan 28, 2011 8:12 am

How to use edtFTPFree in a .net BackgroundWorker

by idelsoni » Fri Jan 28, 2011 8:26 am

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: How to use edtFTPFree in a .net BackgroundWorker

by support2 » Fri Jan 28, 2011 9:27 am

edtFTPnet/Free doesn't support asynchronous downloads, so you'll need to put the operation in a separate thread.

The other alternative is which supports asynchronous operations but isn't freeware.
no avatar
User

idelsoni

Posts

8

Joined

Fri Jan 28, 2011 8:12 am

by idelsoni » Fri Jan 28, 2011 10:15 pm

==>edtFTPnet/Free doesn't support asynchronous downloads, so you'll need to put the operation in a separate thread.
that's what I'm trying to do but I guess I'm not doing it correctly. where / how do I spin off a separate thread for this.. Do I Create a separate thread to hose my FTP connection object? Do I spin a separate thread for the download command? or a separate thread for the bytestransferred callback?
Can I do that with a .NET background worker or do I need to do down a level in the .NET threading model for that?

thanks,
Ira Idelson
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Tue Feb 01, 2011 3:10 pm

You could do the download in a separate thread using ThreadPool.QueueUserWorkItem

Who is online

Users browsing this forum: No registered users and 26 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron