From owner-freebsd-net Thu May 10 9:10:53 2001 Delivered-To: freebsd-net@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 83A1537B422 for ; Thu, 10 May 2001 09:10:51 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id MAA81574; Thu, 10 May 2001 12:10:46 -0400 (EDT) (envelope-from wollman) Date: Thu, 10 May 2001 12:10:46 -0400 (EDT) From: Garrett Wollman Message-Id: <200105101610.MAA81574@khavrinen.lcs.mit.edu> To: Alfred Perlstein Cc: net@FreeBSD.ORG Subject: Re: getaddrinfo irritation In-Reply-To: <20010510090322.K18676@fw.wintelcom.net> References: <20010510082025.J18676@fw.wintelcom.net> <200105101540.LAA81367@khavrinen.lcs.mit.edu> <20010510090322.K18676@fw.wintelcom.net> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org < said: > 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. Change the input format. The API was designed around the idea that programs care about which socket model they get, not the specific protocol. > Do I have to roll my own lookup code? Looks like it. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message