0

When looking at a TCP Socket with /proc/$PID/fd/$FD using readlink I can see it's a socket and a socket number (ID?), e.g.:

67 -> socket:[13005]

but how am I able to programmatically get actual information for that socket, like lsof is doing it? (e.g. hostname or portnumber)

Jonas
  • 79
  • 8

0 Answers0