Solved

Determining a Socket's Owner

Posted on 1997-03-08
1
234 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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
ADO Memory leak with DELPHI 2007 37 153
Generic progress indicator 6 109
bigDiff challenge 17 74
has22 challenge 11 70
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

728 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now