Daniel Stenberg <[EMAIL PROTECTED]> writes: > On Wed, 16 Jan 2002, Hrvoje Niksic wrote: > >> Please don't use gethostbyname2. It's apparently a GNU extension, and I >> don't think it will work anywhere except on Linux. > > gethostbyname2() is defined in RFC2133 if I'm not > mistaking. getaddrinfo() was introduced in RFC2553 (which osoletes > 2133).
Then Linux man pages are wrong. (Movie at eleven.) Still, Solaris 8 doesn't even have a man page for gethostbyname2. If it's really obsolete, it might not be there in future implementations. > If a simple gethostbyname() replacement is what you want, > getipnodebyname() should be used if getaddrinfo() doesn't do it. Yes, getipnodebyname looks nice.