Hey guys, I've recently had some news that we are changing our boradband package to include a new modem, skype phone and faster network speed, however there is a secure download limit this time, we have worked out a set usage for each member of the family but I am worried that I may not stick to the limit and had an idea to create a personal app that can check the internet data usage of my computer and, if over the limit, block all ports on the computer until a set date of the next month.
My big problem is I have no idea where to start, all I need is an idea of the code to check the data usage, preferably declared as a float or int or whatever so it can be shown on the app, how to block all ports and how to set it to release the lock each month.
That would be complex in the case of how to route the information on data usage to the app, or some central point that the app could query on it.
If you want to capture the data usage even "just" on your iPhone, you need the app to be running in the background, or else, how does it read the data, when you use other apps which is using a data network ?
You need an external server, so the app could query on it.
Writing code is not only about writing instructions to a machine / computer, but also about writing something that could be read, understood, and maintained by others. That's why, I like Cocoa.
or even easier idea would be to setup the parental settings for the users on the computer. give them X amount of time on the computer per day or month and then the computer will log them off.
Its not going to cut you off after X amount of band width but it will limit how much the computers are being used. And if your not using the internet the admin can always still log in.