Disclaimer: This post is migrated from IBM Developer Answers that is no longer in use. Its original author is ivan.shyiko, posted on Feb. 11, 2019.I need to get information about all active network connections on the system using C/C++(basically what the netstat command provides us). Basically I'm asking if there's any C/C++ netstat API available out there. If not, any place where I can get this data? I suppose it can also be read from the MIBs somehow, but I didn't manage to find documentation about it.
Parsing netstat/lsof output is not an option.
---------------------------------------------------------------
Question asked by ivan.shyiko on Feb. 11, 2019
----------------------------------------------------------------