2

I would like to be able to measure network traffic and limit it.

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 ?

This is meant to be used on a datasnap 2009 thin-client.

mghie
  • 32,028
  • 6
  • 87
  • 129
Fred
  • 1,607
  • 20
  • 33

3 Answers3

3

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

My understanding is that DataSnap is based on Indy.

Rob Kennedy
  • 161,384
  • 21
  • 275
  • 467
  • Thanks for your reply, i've take a look at what you said. From what i understand, datasnap is based on Indy on the server side, and on dbexpress on the client side. So, i think that it should be possible to limit/monitor traffic but only on the server. (but that don't seems to be so straightforward) – Fred Feb 19 '09 at 08:13
  • Sorry, that's the best I can do. WinPCap is probably worth a closer look. Good luck. – Rob Kennedy Feb 19 '09 at 13:54
1

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.

Reza Fallahpour
  • 220
  • 3
  • 8
1

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.

Gerry Coll
  • 5,867
  • 1
  • 27
  • 36
  • I meant to monitor/limit traffic of the delphi application. Thanks for the link, I didn't know that project at all, it seems very cool. – Fred Feb 19 '09 at 08:17