> what ports are listening.  "netstat -a" is very cross platform.  It works
> on all versions of windows and unix that I've seen, (I have no idea if

I say you just open the services file readonly.. running that 
command opens up a new can of worms as far as security is 
concerned. You'll also save yourself a fork-and-exec in the process
and some IPC as well.. I'm not aware of any way to pipe the output
directly back into memory, it would need to be written to disk or to
a FIFO, adding much more overhead for a very simple thing. KISS.


~ Signal 11
_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to