From owner-freebsd-net Thu May 10 9: 3:27 2001 Delivered-To: freebsd-net@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 393F437B423 for ; Thu, 10 May 2001 09:03:25 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f4AG3MG24756; Thu, 10 May 2001 09:03:22 -0700 (PDT) Date: Thu, 10 May 2001 09:03:22 -0700 From: Alfred Perlstein To: Garrett Wollman Cc: net@FreeBSD.ORG Subject: Re: getaddrinfo irritation Message-ID: <20010510090322.K18676@fw.wintelcom.net> References: <20010510082025.J18676@fw.wintelcom.net> <200105101540.LAA81367@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105101540.LAA81367@khavrinen.lcs.mit.edu>; from wollman@khavrinen.lcs.mit.edu on Thu, May 10, 2001 at 11:40:49AM -0400 X-all-your-base: are belong to us. Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * Garrett Wollman [010510 08:41] wrote: > < said: > > > Using "our" APIs (getaddrinfo) is causing me much pain because I can't > > figure out how to map "tcp" -> SOCK_STREAM. > > You don't. In the `hints' structure, you pass in ai_socktype == > SOCK_STREAM. This is clearly documented in the manual page. Duh. :) What I mean is how would one map: localhost:http:tcp into that? There seems to be no way to determine what I must do to ai_socktype based on the above string. Do I have to roll my own lookup code? -- -Alfred Perlstein - [alfred@freebsd.org] http://www.egr.unlv.edu/~slumos/on-netbsd.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message