Lee
Lee

Reputation: 791

File transfer over unreliable and slow connection with c#

I am looking for a way to transfer a lot of files over a long period of time from a client to a server. The connection between the client and the server is not reliable and slow.

I thought about using the FTP protocol. I saw the netftp client. I now need a ftp server in .net also.

The most important feature that I need is reliable connection resuming. Something that I can rely on to just start and end over a period of time reliably.

I didn't find many ftp servers that were written in c#.

Thank you.

Upvotes: 0

Views: 1964

Answers (1)

Rabi
Rabi

Reputation: 2220

you can use Background Intelligent Transfer Service in windows. http://msdn.microsoft.com/en-us/library/bb968799(v=vs.85).aspx

Use BITS for applications that need to:

  1. Asynchronously transfer files in the foreground or background.
  2. Preserve the responsiveness of other network applications.
  3. Automatically resume file transfers after network disconnects and computer restarts.

a .net wrapper is available for BITS - http://sharpbits.codeplex.com/

Upvotes: 1

Related Questions