From owner-freebsd-net Sun Oct 29 8: 5:32 2000 Delivered-To: freebsd-net@freebsd.org Received: from gw.nectar.com (gw.nectar.com [208.42.49.153]) by hub.freebsd.org (Postfix) with ESMTP id 12A1537B479 for ; Sun, 29 Oct 2000 08:05:30 -0800 (PST) Received: by gw.nectar.com (Postfix, from userid 1001) id 91614193DF; Sun, 29 Oct 2000 10:05:29 -0600 (CST) Date: Sun, 29 Oct 2000 10:05:29 -0600 From: "Jacques A. Vidrine" To: "JINMEI Tatuya / ?$B?@L@C#:H?(B" Cc: freebsd-net@FreeBSD.ORG Subject: Re: getaddrinfo and the UNIX domain Message-ID: <20001029100529.B26020@spawn.nectar.com> Mail-Followup-To: "Jacques A. Vidrine" , "JINMEI Tatuya / ?$B?@L@C#:H?(B" , freebsd-net@FreeBSD.ORG References: <20001028163909.A77420@hamlet.nectar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from jinmei@isl.rdc.toshiba.co.jp on Sun, Oct 29, 2000 at 12:07:35PM +0900 X-Url: http://www.nectar.com/ Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, Oct 29, 2000 at 12:07:35PM +0900, JINMEI Tatuya / ?$B?@L@C#:H?(B wrote: > By the way, in my understanding, if getaddrinfo supported PF_UNIX, it > would take the filename as its 1st argument: > > getaddrinfo("/tmp/some-socket", NULL, &hints, &res); In the absence of any standard, I think either way could be argued. For example, as a counter argument, The address parameter specifies a machine or network interface, and in the local domain one there is only one possible machine. Therefore, the address parameter should be NULL, and the service parameter specifies the `port' or `SAP'. -- Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message