Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Aug 2001 15:53:04 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        Hajimu UMEMOTO <ume@FreeBSD.org>
Cc:        Jim.Pirzyk@disney.com, sheldonh@starjuice.net, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc/net gethostbyname.3
Message-ID:  <20010809155304.D36094@sunbay.com>
In-Reply-To: <20010809.213408.78798491.ume@FreeBSD.org>; from ume@FreeBSD.org on Thu, Aug 09, 2001 at 09:34:08PM %2B0900
References:  <20010809095906.C91485@sunbay.com> <20010809.205147.104122969.ume@FreeBSD.org> <20010809151815.A36094@sunbay.com> <20010809.213408.78798491.ume@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 09, 2001 at 09:34:08PM +0900, Hajimu UMEMOTO wrote:
> >>>>> On Thu, 9 Aug 2001 15:18:15 +0300,
> >>>>> Ruslan Ermilov <ru@FreeBSD.org> said:
> 
> ru> > ru> How about implementing these as wrappers to get{addr,name}info(3)?
> ru> > 
> ru> > Sorry but I cannot imagin your idea.  Dou you mean application may
> ru> > call such wrapper function instead of getaddrinfo()?  If so, it means
> ru> > we create new API and it affects many applications.  I think it
> ru> > shouldn't.
> ru> > 
> ru> Nope, I mean what if we implement gethostby*() using get*info(),
> ru> internally?
> 
> I see.  It may good idea to wipe out duplicate functionality
> internally.  However, it doesn't solve the problem.  As premise,
> gethostbyname() cannot treat AF_INET6 and AF_UNSPEC.  This is a reason
> why we should use getaddrinfo() instead of gethostbyname() from IPv6
> perspective.
> 
Grr, am I saying the opposite?  I am all along with you on these.
And implementing gethostbyname(), gethostbyname2(), and gethostbyaddr()
functions internally using getaddrinfo() and getnameinfo() would be
a good step towards this.

(I mean, make them a special case of get*info() functions.)


Cheers,
-- 
Ruslan Ermilov		Oracle Developer/DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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