Solved

Determining a Socket's Owner

Posted on 1997-03-08
1
278 Views
Last Modified: 2013-12-26
Is it possible to determine which process is connected to
a particular socket?  In particular, I'd like to know which
server processes are handling which connections.
0
Comment
Question by:OPoplawski
1 Comment
 

Accepted Solution

by:
knowledge021097 earned 100 total points
ID: 1292386
This is very system dependant; under modern Unix variants (Linux, FreeBSD, etc) you can use "fuser" to get this information.  If you are looking for code, the source is freely available.

For Operating Systems where you don't have this luxury, look for a program called "lsof", which can do the same thing (and more). Once again, you can examine the source to see how it is done (which varies from system to system).
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Question regarding Copy/Paste 16 98
sumHeights  challenge 17 79
firstChar challenge 13 133
Detect file exist or not 3 202
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question