[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getaddrinfo/ipv6



Hi,

Anyone know a little about getaddrinfo or the new ipv6 API? I've noticed
that when you compile xchat with ipv6 is does a reverse lookup aswell as a
forward lookup. This is not good, because it takes longer. What I'm looking
for is the equivilant of hostent->h_name (gethostbyname) for getaddrinfo.

Currently it's using AI_CANONNAME and ->ai_cannonname, but as I said, it
returns the reverse lookup instead of the "offical name of the host". Is
there an equivilant of h_name using getaddrinfo()?

-- 
Peter Zelezny. <zed@linux.com>

-
XChat-discuss: mailing list for XChat users
Archive:       http://mail.nl.linux.org/xchat-discuss/
Posted By:     Peter Zelezny <zed@linux.com>