Question Get Ports from a given PID

jcamilo

New member
Joined
Mar 4, 2013
Messages
1
Programming Experience
5-10
Hi,
I'm trying to write a program that checks for all ports being used by a specific process. I have the process ID and I need to get all the ports and their status (ESTABLISHED, LISTENING, .....). I've been searching all over the web, but I can only find functions that get ports when given an IP address and a port.

Can someone please help me with some code or anything really?

Thank You
 

Latest posts

Back
Top