• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: detecting sockets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: detecting sockets


  • Subject: Re: detecting sockets
  • From: Thomas Drake <email@hidden>
  • Date: Tue, 16 Nov 2004 12:28:41 -0800

doesn't lsof just give you a snapshot of what file descriptors are open (for a given moment)? i'm really looking for a 100% reliable method for finding what sockets are opened for a give duration.

thomas

On Nov 15, 2004, at 10:03 AM, Stephane Sudre wrote:


On 15 nov. 04, at 06:06, Thomas Drake wrote:

Hello List.

I'm trying to detect **all** sockets that are created (and that have been established) on a system. I've been analyzing the output of netstat with some success, but netstat will often miss sockets that are only alive for a short time.

Someone suggested that I setup a kernel notification for socket connect calls, or patch it in some manner. I'm not really sure how to do that, or if it's a good solution.

Any ideas... Thanks,

lsof source code?


_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: detecting sockets
      • From: Quinn <email@hidden>
References: 
 >detecting sockets (From: Thomas Drake <email@hidden>)
 >Re: detecting sockets (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: Dead Streams?
  • Next by Date: Re: General Sockets Questions?
  • Previous by thread: Re: detecting sockets
  • Next by thread: Re: detecting sockets
  • Index(es):
    • Date
    • Thread