Hello, is it possible to set speedlimits for uploads / downloads? So a running file transfer does not use all available bandwidth but can be restricet to XX kbps?

Kind Regards Bjoern

asked 26 Jul '11, 09:24

Bjoern's gravatar image

Bjoern
15
accept rate: 0%


To set speed limits use MaxDownloadSpeed and MaxUploadSpeed properties.

See example code:

Ftp ftp = new Ftp();
...

ftp.MaxUploadSpeed = 5; // limit upload bandwidth to 5 kilobytes per second
ftp.MaxDownloadSpeed = 5; // limit download bandwidth to 5 kilobytes per second

...
ftp.PutFile("file","file");

For unlimited speed set both properties back to zero.

link

answered 26 Jul '11, 11:07

Martin%20Vobr's gravatar image

Martin Vobr ♦♦
335310
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×152

Asked: 26 Jul '11, 09:24

Seen: 488 times

Last updated: 26 Jul '11, 11:07