Is there a Linux library that will enable me to tell what IP sockets are owned by what processes? I guess I\'m looking for the programmatic equivalent of lsof -i
lsof -i
I'd go to the source:
http://ubuntuforums.org/showthread.php?t=1346778