问题描述
我希望能够测量网络流量并限制它.
I would like to be able to measure network traffic and limit it.
我正在寻找一种可以让我知道两次通话之间已发送和接收了多少数据的东西.另外,我希望能够限制我的应用程序的网络流量(输入和输出).类似于NetLimiter软件(出色的应用程序!),但我可以从代码中进行控制.
I'm looking for something that lets me know between two calls how much data has been sent and received. Also, I would like to be able to limit network traffic (in & out) for my app.Something like the NetLimiter software (great app!) but which I can control from my code.
您知道执行此操作的某些第三方组件吗?
Do you know some third party components to do this ?
它打算在datasnap 2009瘦客户端上使用.
This is meant to be used on a datasnap 2009 thin-client.
推荐答案
如果使用Indy,则使用 TIdInterceptThrottler
类.只需设置BitsPerSec
属性.
If you use Indy, then use the TIdInterceptThrottler
class. Simply set the BitsPerSec
property.
我的理解是DataSnap基于Indy.
My understanding is that DataSnap is based on Indy.
这篇关于如何监控/限制我的应用使用的网络流量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!