View Full Version : C++ Question

23rd March 2007, 04:28 PM
I'm a novice C++ programmer and I'm looking for a way to basically block incoming/outgoing data for a set period of time. I don't need a GUI as it will start blocking as soon as its run then automatically close after the time is up. I've searched for a spot to get started on this but to no avail. Can someone point me in the direction I need to be headed here?

23rd March 2007, 06:21 PM
If you're talking about networking this has to be done at kernel level or through Network Address Translation (NAT) You need either firewall software (such as windows firewall, or Zone Alarm)[in the case of linux just use IPTables] or a router.

23rd March 2007, 06:54 PM
Ah, ok. The effect I was going for would have been similar to having unplugged the network cable from the computer for a few seconds (long enough to be of use, short enough that the router will not reset) then plugging it back in, and able to run the program from a keyboard shortcut(AutoHotKey). Thanks for your reply.