From owner-freebsd-questions@FreeBSD.ORG Thu Nov 15 00:00:57 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 595DF16A420 for ; Thu, 15 Nov 2007 00:00:57 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.bluestop.org (unknown [IPv6:2001:41c8:1:548a::2]) by mx1.freebsd.org (Postfix) with ESMTP id EFDB213C459 for ; Thu, 15 Nov 2007 00:00:56 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.draftnet (cran1.demon.co.uk [80.177.26.208]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTP id 73E6F30114; Thu, 15 Nov 2007 00:00:54 +0000 (GMT) Message-ID: <473B8C23.3000305@cran.org.uk> Date: Thu, 15 Nov 2007 00:00:35 +0000 From: Bruce Cran User-Agent: Thunderbird 2.0.0.6 (X11/20071104) MIME-Version: 1.0 To: Derek Ragona References: <340a29540711141421tda33970q79f85533fb5ba725@mail.gmail.com> <6.0.0.22.2.20071114165954.024c5d90@mail.computinginnovations.com> In-Reply-To: <6.0.0.22.2.20071114165954.024c5d90@mail.computinginnovations.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: User Questions , Andrew Falanga Subject: Re: Socket programming question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2007 00:00:57 -0000 Derek Ragona wrote: > With internet sockets, these get added to the TCP stack, and their are > kernel structures created too I'm sure, but I have no idea how to find > those. Netstat will show sockets in use though. > sockstat(1) might also be useful as it shows information about what program opened the connection and the file descriptor number of the socket. -- Bruce