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
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