Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: .NET3.5 C# Desktop
Hello Every one...
 
I work on one desktop application in which i want to manage internet data use by particulate time duration. any way to get this type of data use in c# application.
Posted 4-Apr-13 0:17am
(unknown member)
Edited 4-Apr-13 2:19am
v3
Comments
ryanb31 at 4-Apr-13 7:26am
   
Many routers have that built-in to them. Any chance you can just use that?
Archit Patel at 4-Apr-13 7:42am
   
but i don't work with only with routers but i want to my application in any network like it's should work with dial up connection also.
Archit Patel at 4-Apr-13 7:42am
   
but what in dial up connection ?
CHill60 at 4-Apr-13 8:14am
   
You could try a System.Timers.Timer with an Interval set to your time limitation - when the Elapsed event fires check to see if they're still "using the internet" (not sure how you're doing that bit) and if so terminate their usuage.
Archit Patel at 4-Apr-13 8:21am
   
please can you give any example code.
CHill60 at 4-Apr-13 8:53am
   
There's some sample code with the documentation http://msdn.microsoft.com/en-us/library/system.timers.timer.aspx. As suggested by ThePhantomUpvoter below if you're using or writing a proxy server then try searching in codeproject for some further examples
Archit Patel at 4-Apr-13 8:59am
   
it good but what about network data use.?
CHill60 at 4-Apr-13 9:23am
   
I thought you wanted it based on duration not data use. Have a look here http://stackoverflow.com/questions/4106542/can-i-write-a-program-to-limit-the-internet-usage-to-40mb-per-day
ThePhantomUpvoter at 4-Apr-13 8:32am
   
It called a proxy server and there are many existing solutions around.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 7,903
1 Sergey Alexandrovich Kryukov 7,192
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,820


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 4 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100