[plt-scheme] IPv6?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Fri Nov 4 09:59:55 EST 2005

At Fri, 4 Nov 2005 07:46:28 -0700, Matthew Flatt wrote:
> In the SVN trunk, `tcp-connect' tries to connect to each address until
> it succeeds with one, and `tcp-listen' creates a listening socket for
> every address.

I forgot one detail:

When no local address is supplied `tcp-listen' and the underlying OS
supports both IPv4 and IPv6, the created listener generally accepts
both IPv4 and IPv6 connections. (It depends on how the OS is
configured, but that would be the normal configuration.)

Also, I forgot to explain some implications:

As Lee points out, this mostly solves the problem with "localhost".
Programmers using TCP don't have to worry about whether "localhost"
usually mans IPv4 or IPv6; things should "just work" with both

UDP programmers may still have to worry about the difference, and a UDP
socket is still IPv4 by default.


Posted on the users mailing list.