用C#限制互联网 [英] limit internet with c#

查看:113
本文介绍了用C#限制互联网的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我的程序检查发送的数据和接收的数据,并每天禁用40Mb的Internet(禁用我拥有的所有连接).
有什么可以告诉我的吗?

I want my program check sent data and received data and disable the internet for 40Mb a day(disable all of connections that i have).
Can any tell me?

推荐答案

每天40 Mb太小了.一些图像和Windows更新,您将身处其中.甚至都不要考虑音频或视频.达到限制的时间将过多.

这将是一个非常糟糕的主意,因为互联网在进行一些在线交易时甚至被禁用,甚至只是在Code Project上在此处发布答案,因为它随时可能发生...特别是这么小的限制.

您可能要下载的许多软件都比这个更大....到那时,您可能会停止使用Internet,因为您将无法做很多有用的事情.

所有使用Internet连接检查更新或确认其合法的程序也会发生什么情况.

您将如何收到电子邮件.

太过严格了...如果您对此有所考虑.
40 Mb a day is way too small. A few images and Windows updates and you will be above that. Don''t even think about audio or video. There will be too much days when the limit would be reached.

And it would be a very bad idea that the Internet became disabled while doing some online transactions or even simply posting an answer here on Code Project as it could happen at anytime... particulary for such a small limit.

Many softwares you might want to download are bigger than that... At that point, you might simply stop using Internet as you won''t be able to do much usefull things.

What would also happen with all those program that uses Internet connection to checked for updates or validate they are legitimate.

How will you receive your email.

Way too much restrictive... if you think a bit about it.


我认为您的朋友在1年前问了同样的问题,请检查
我可以写一个程序将Internet使用量限制为每天40mb? [带宽限制 [ MyDownloader:多线程C#分段下载管理器 [
I think your friend asked the same question 1 year ago, check it
Can i write a program to limit the Internet usage to 40mb per day?[^]

And I found these articles in CP
Bandwidth throttling[^]
MyDownloader: A Multi-thread C# Segmented Download Manager[^]

BTW 40MB/day is too small.


这篇关于用C#限制互联网的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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