I consider this quite a challenge. But ofcourse, can be done -- but I will require quite a bit of help:
Here's what I want to do:
*Create a program that allows someone else (on another computer, else-where), with another (self-made) program to disconnect me from the internet.
Here's WHY I want to do it:
*I'm on dial-up, and therefore have to use the phone line here to go on the internet (which stops people from being able to contact us.) There has been a few occations in which my brother/myself have been online -- and someone has been trying to phone us, often about something important. As a result, I would like to give people that I can trust, the capabilities to disconnect me from the internet -- from another computer over the internet.
Here's HOW I want to do it:
*I'm open for any other ideas. But, thought that I need to make a contribution to the actuall creation of this..
I thought, perhaps have my computer run a server socket.
And give the 'trust-worthy comrade', a program that runs as a client socket. Which will connect to my computer, giving some sort of password (for obvious security reasons). My server socket will accept this connection -- and if the correct password is given, then the program (running the server socket) will disconnect my computer.
Incase the above didn't make much sence, I've kinda created some 'pseudocode', to explain it a bit better:
*listen for a connection.
*if a connection is discovered, accept it.
*if the correct 'password' is given, then warn me (/user) that the computer will be disconnected in 2 minutes.
*if the internet is still connected after 2 minutes, then automatically disconnect, then loop back to the start. (else, close connection and loop back to the start).
*connect to my computer.
// let the server socket do the rest.
I know this will take quite a lot.
NOTE: I don't have LOADS of programming experience. But I do know 'enough' about networking.
Ofcourse, 20 points is not much (but is all I currently have). So, I shall add 5 points to this Q every day. I swear! (But please don't purposely drag the question out JUST for more points. lol.. that's evil! :o)
I'm looking forward to any input.
(PS: Please don't say: "Just get another phone line. Or get broadband. lol.. I have my reasons not to do it this way. :P)