如何以编程方式限制我的C#应用​​程序的带宽使用情况? [英] How to programatically limit bandwidth usage of my c# application?

查看:166
本文介绍了如何以编程方式限制我的C#应用​​程序的带宽使用情况?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我来到这里的备份应用程序它连接到从FTP或HTTP服务器的各种Web服务和下载/上传文件。什么是限制我的应用程序的带宽使用最简单的方法?

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.

在此先感谢!

推荐答案

你所寻找被称为的带宽限制这里是一个很好的例子 这是怎么做的,还审查意见,知道它是如何从一个客户端完成的。

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

这篇关于如何以编程方式限制我的C#应用​​程序的带宽使用情况?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆