From owner-freebsd-net Sun Oct 29 8:11:55 2000 Delivered-To: freebsd-net@freebsd.org Received: from shuttle.wide.toshiba.co.jp (shuttle.wide.toshiba.co.jp [202.249.10.124]) by hub.freebsd.org (Postfix) with ESMTP id 756D537B479 for ; Sun, 29 Oct 2000 08:11:52 -0800 (PST) Received: from localhost ([3ffe:501:100f:13ff::e]) by shuttle.wide.toshiba.co.jp (8.9.1+3.1W/8.9.1) with ESMTP id AAA11702; Mon, 30 Oct 2000 00:57:01 +0900 (JST) Date: Mon, 30 Oct 2000 01:11:26 +0900 Message-ID: From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: n@nectar.com Cc: freebsd-net@FreeBSD.ORG Subject: Re: getaddrinfo and the UNIX domain In-Reply-To: In your message of "Sun, 29 Oct 2000 10:05:29 -0600" <20001029100529.B26020@spawn.nectar.com> References: <20001028163909.A77420@hamlet.nectar.com> <20001029100529.B26020@spawn.nectar.com> User-Agent: Wanderlust/2.3.0 (Roam) Emacs/20.7 Mule/4.0 (HANANOEN) Organization: Research & Development Center, Toshiba Corp., Kawasaki, Japan. MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII X-Dispatcher: imput version 980905(IM100) Lines: 24 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >>>>> On Sun, 29 Oct 2000 10:05:29 -0600, >>>>> "Jacques A. Vidrine" said: >> 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'. I admit you could say that (thus I added "in my understanding" in my previous message). Anyway, the problem is that there's no standard about combination of PF_UNIX and getaddrinfo(), as itojun pointed out. JINMEI, Tatuya Communication Platform Lab. Corporate R&D Center, Toshiba Corp. jinmei@isl.rdc.toshiba.co.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message