Is there any way to get all opened sockets using c++? I know the lsof command and this is what I\'m looking for, but how to use it in a c++ application?
lsof
check the lsof source?
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/