如何以编程方式限制我的 C# 应用程序的带宽使用?

发布于 2024-07-19 16:09:41 字数 176 浏览 6 评论 0原文

我这里有一个备份应用程序,它连接到各种网络服务并从 ftp 或 http 服务器下载/上传文件。 限制应用程序带宽使用的最简单方法是什么?

我需要这样做,因为应用程序一旦安装并运行就会减慢所有办公室人员的互联网访问速度,这最终会让我陷入地狱。 因此,我想实施一个速度限制,该速度限制在工作时间有效,在夜间禁用。

I've got a backup application here which connects to various webservices and downloads/uploads files from ftp or http servers. What is the easiest way to limit the bandwidth usage of my application?

I need to do that because the application once installed and running will be slowing down internet access for all office people, which eventually will get me into hell. So I'd like to implement a speed-limit which is active during the work-hours and gets disabled at night.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

独留℉清风醉 2024-07-26 16:09:41

您正在寻找的称为带宽节流,这是一个

您可能还想查看此示例 同样,将东西放入实际应用程序中

What you are looking for is called Bandwidth throttling And here is a good example how is this done, also review the comments to know how it is done from a client side.

You may also want to take a look at this example too, putting things in a real application

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文