calculate threshold

  • Thread starter Thread starter Jassim Rahma
  • Start date Start date
J

Jassim Rahma

here we have aa limited broadband internet accounts, 5GB, 10GB and 15GB. I
want to calculate the total threshold to monitor the internet usage using
C#?
 
Jassim Rahma said:
here we have aa limited broadband internet accounts, 5GB, 10GB and 15GB. I
want to calculate the total threshold to monitor the internet usage using
C#?


Hi Jassim,

this can be done with pure C# and only the 2.0 .NET FW.
Earlier Versions had to use the Windows API and PInvoke.
You also should keep in your mind, if you have more than
one connection, network card, or even computers in a network,
that you have to store the send/received data somewhere to
calculate the total amount of data that has been send or received.
This can be done with some external databases(SQL/XML,etc)
that stores all network traffic from your system.

Check this classes out:
[IPGlobalStatistics Class]
http://msdn2.microsoft.com/en-us/li...orkinformation.ipglobalstatistics(VS.80).aspx
There is also a working console example available there.

Hope this helps,...

Beste Grüsse / Best regards / Votre bien devoue

Kerem Gümrükcü
 
Back
Top