getProcessName By Port number

This is a discussion on getProcessName By Port number within the C++ Programming forums, part of the General Programming Boards category; Hi, I want to show process name or process id by port number.Port number is known but what process (id ...

  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    4

    Question getProcessName By Port number

    Hi,

    I want to show process name or process id by port number.Port number is known but what process (id or name) is keeping it busy.

  2. #2
    Registered User
    Join Date
    Mar 2010
    Posts
    18
    There is no standard (as in ISO 14882) way to do it in C++. It is a operating system related question. So: what operating system do you use? In Linux&BSD a system("netstat") will be the quick&dirty solution. For MacOS, BeOS, NeXT, Dos, Windows et cetera I have no clue.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 11
    Last Post: 10-07-2008, 07:19 PM
  2. Number Guessing
    By blacknapalm in forum C Programming
    Replies: 2
    Last Post: 10-01-2008, 02:48 AM
  3. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 06:49 PM
  4. Problems with connect and select...
    By scrappy in forum Networking/Device Communication
    Replies: 4
    Last Post: 12-24-2003, 08:19 PM
  5. Random Number problem in number guessing game...
    By -leech- in forum Windows Programming
    Replies: 8
    Last Post: 01-15-2002, 05:00 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21