On 3 Feb 1999, Niels [ISO-8859-1] Möller wrote:
> Balazs Scheidler <[EMAIL PROTECTED]> writes:
>
> > btw: what about making lsh IPv6 compatible? Of course only when the core
> > functionality is ready.
>
> It's definitely something that would be nice to have (the protocol has
> enough support for it, as far as I can tell).
I thought so.
>
> But I don't know at all how IPv6 works, from a programmer's point of
> view. Until I'm told otherwise, my naďve belief is that on a platform
> that supports IPv6, struct sockaddr_in, gethostbyname() and
> inet_addr()/inet_aton() will support ipv6 transparently, so that we
> get it for free.
this is not true, but only a few modifications are required. first of all
instead of gethostbyname() one has to use getaddrinfo(), which returns the
address family (AF_INET or AF_INET6) in addition to a sockaddr_in or
sockaddr_in6 structure. So the only thing we have to make sure, is that
the code that resolves a given hostname, passes the address family along
to the socket creation.
--- Bazsi