how to monitor network status using C/C++ library functions

  • Follow


I want to constantly monitor my own network status in a program. This
can be done using netstat command. But is there any command in the
C/C++ library which can be used for the same purpose. Another option is
to execute the netstat command in the program, but is it advisable to
run a command continuously in a progam (as i want to monitor my status
continuously). What will be the effect of of doing so on the memory
usage and cpu load ??

0
Reply sumirmehta (26) 12/17/2005 5:33:39 PM

Sumir wrote:
> I want to constantly monitor my own network status in a program. This
> can be done using netstat command. But is there any command in the
> C/C++ library which can be used for the same purpose. Another option is
> to execute the netstat command in the program, but is it advisable to
> run a command continuously in a progam (as i want to monitor my status
> continuously). What will be the effect of of doing so on the memory
> usage and cpu load ??
> 
Well, you can always look at the source for netstat and do what netstat 
does; that will save you the overhead of running netstat and possibly a 
shell.

Robert
0
Reply Robert 12/17/2005 8:04:06 PM


1 Replies
802 Views

(page loaded in 0.009 seconds)

Similiar Articles:













7/22/2012 8:31:26 AM


Reply: