public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andrey Repin <anrdaemon@yandex.ru>
To: All <cygwin@cygwin.com>
Subject: Find out a process that holding the socket?
Date: Mon, 22 Aug 2022 19:22:19 +0300	[thread overview]
Message-ID: <1277628349.20220822192219@yandex.ru> (raw)

Greetings, All!

I'm trying to write a small helper utility, and I need to find out, which
process is holding a particular socket open.
Since there's no "lsof" utility in Cygwin, which is commonly suggested for
this task on Linux, I'm failing to find an alternative.
Is there a simple solution available or I have to dig down into WinAPI?
The process is going to run elevated, if that matters.


-- 
With best regards,
Andrey Repin
Monday, August 22, 2022 19:15:48

Sorry for my terrible english...


             reply	other threads:[~2022-08-22 16:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-22 16:22 Andrey Repin [this message]
2022-08-23 16:08 ` Stephen P. Carrier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1277628349.20220822192219@yandex.ru \
    --to=anrdaemon@yandex.ru \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).