Possible Duplicate:
Linux API to list running processes?
I have question. I make small program under linux in c++. I want to get process name, which is listening on some port. The process is running on server. I create connection using sockets and connect to specified port. Is it possible to get process name listening on port? example: ./myapp www.example.com -p 100
Thanks for help