How can I rate limit an upload using TcpClient?

后端 未结 4 1235
刺人心
刺人心 2021-01-06 18:23

I\'m writing a utility that will be uploading a bunch of files, and would like to provide the option to rate limit uploads. What is the best approach for rate limiting uploa

4条回答
  •  囚心锁ツ
    2021-01-06 18:43

    Rather than creating this, you might also want to consider BITS (Background Internet Transfer Service) which allows the user (or admin) to configure bandwidth, and will handle queuing of transfers.

    It does require specific support on the server (including in IIS, but needs enabling).

提交回复
热议问题