: Is there any function that lets you close off ports? : what kind of ports do you mean? I don't think you can shut down the I/O ports (such as the ones in your hosts file) on your computer via a program.
: No, just the tcp/udp remote ports. Firewall kinda thing. :
I was wondering that myself, but I believe you need to use a non-standard library to accomplish the task. Try http://winpcap.polito.it for a decent library that should accomplish what you want. [italic][blue]Programming is like kids... One mistake and you have to support it for life[/blue][/italic]
Comments
:
what kind of ports do you mean? I don't think you can shut down the I/O ports (such as the ones in your hosts file) on your computer via a program.
:
I was wondering that myself, but I believe you need to use a non-standard library to accomplish the task. Try http://winpcap.polito.it for a decent library that should accomplish what you want.
[italic][blue]Programming is like kids... One mistake and you have to support it for life[/blue][/italic]
:
Linux has some standard headers, and of course that you can look into, otherwise try searching for "libpcap, the well known Unix capture library."
[italic][blue]Programming is like kids... One mistake and you have to support it for life[/blue][/italic]