Is there a way to get a list of all open sockets ( socket address or socket descriptor ) in Linux using C in user-space or kernel?
Thank you
This program may be useful for you and demonstrates how to parse the /net/proc/* files sockstat.c