Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Retrieving Network statistics similar to nicinfo in c++: (1 Item)
   
Retrieving Network statistics similar to nicinfo in c++  
I was looking for a way to query all the info available with the nicinfo utility directly into c++.

Currently I am using the popen command to parse the text from nicinfo. I was hoping there was an alternative way to do 
this?

I see that a nic_stats_t structure is available "qnx.com/developers/docs/6.3.2/ddk_en/network/nic_stats_t.html".

This suggests that I would use devctl() with DCMD_IO_NET_GET_STATS to retrieve this information, however this leaves me 
with a few more questions:

1. What file descriptor do I pass to devctl? I do not see my Network devices in the "/dev/..." directory. 
2. What includes do I need to achieve the mentioned functionality.
3. Are there any c++ examples I could look at to help me along?

I tried to find the nicinfo source using the svn checkout method however I do not seem to have access to that.



Thanks