Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 May 2001 12:10:46 -0400 (EDT)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        net@FreeBSD.ORG
Subject:   Re: getaddrinfo irritation
Message-ID:  <200105101610.MAA81574@khavrinen.lcs.mit.edu>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Thu, 10 May 2001 09:03:22 -0700, Alfred Perlstein <bright@wintelcom.net> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105101610.MAA81574>