How can I monitor / limit network traffic used by my app?

∥☆過路亽.° 提交于 2019-12-06 12:37:05

If you use Indy, then use the TIdInterceptThrottler class. Simply set the BitsPerSec property.

My understanding is that DataSnap is based on Indy.

If you mean by the system as a whole (and not the application - it's a bit unclear), you could look at WinPCap. There are Delphi wrappers available.

If your are developing an application on unix-based box such as Linux, you can limit your connection speed using linux's built-in firewall name iptables.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!