I need a stripped down version of netstat to solely run the -antp switches and then parse the output. This has to be done in the C programming language and ran as a demon. The idea is the keep track of the amount of processes running and kill the extras.