How to embed NetLimiter in my application

I have a C # client application that connects to multiple servers. I noticed that you need to use NetLimiter activated rules so that my client connects correctly with a higher priority when there is so much traffic on the client computer.

I did not find any documents on how I can embed and make rules programmatically in this application. However, I read here that someone tried to use the Netlimiter API, but failed.

I read somewhere that I can write my own application that uses the TC API for Windows in here and mark DSCP to make priorities. But I got to this problem before adjusting the flow settings of my C # application.

Please help me with this problem.

+6
source share
1 answer

Take a look here . Connect()and SetRule()are the only APIs available.

NetLimiter seems to be a COM object, so to use it with C # you need something like this:

dynamic myownlimiter = Activator.CreateInstance(Type.GetTypeFromProgID("NetLimiter.VirtualClient"));
myownlimiter.Connect("host", "port");

and then use SetRule()as described in the first link.

+2
source

Source: https://habr.com/ru/post/1017228/


All Articles