<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>ok, sorry...</FONT></DIV><FONT size=2 face=Arial>
<DIV>&nbsp;</DIV>
<DIV>(tcp-connect&nbsp;&nbsp; 
hostname&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; 
port-no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp; 
[local-hostname&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&nbsp;&nbsp; local-port-no])&nbsp;&nbsp; →&nbsp;&nbsp; 
input-port?&nbsp;&nbsp; output-port? <BR>&nbsp;<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>If hostname already resolves to an IPv6 address, you are done - to test 
(locally):</DIV>
<DIV>&nbsp;</DIV>
<DIV>In /etc/hosts, add something like</DIV>
<DIV>&nbsp;</DIV>
<DIV>127.0.0.1&nbsp;&nbsp;&nbsp;&nbsp; localhostipv4</DIV>
<DIV>::1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
localhostipv6</DIV>
<DIV>&nbsp;</DIV>
<DIV>then open a connection to localhostipv6. That'll get you via an IPv6 
interface - which one I don't know since there is no scope Id you can specify in 
the call to connect!</DIV>
<DIV>&nbsp;</DIV>
<DIV>Another way is to set local-hostname to localhostipv6, but then you can not 
leave local-port-no unspecified (I don't have any idea why that is so; I don't 
see any reason prescribed by IPv6 for it) which has ugly side effects (such as 
the one that you can't reopen the connection with the same local port unless TCP 
has nuked the old one completly which may take a while; also, there is not 
really a way to figure out if a port you select is in use or not).</DIV>
<DIV>&nbsp;</DIV>
<DIV>For test purposes it works, but it appears that there is work left to be 
done...</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></FONT>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=grettke@acm.org href="mailto:grettke@acm.org">Grant Rettke</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=rac@ruediger-asche.de 
  href="mailto:rac@ruediger-asche.de">Rüdiger Asche</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=users@racket-lang.org 
  href="mailto:users@racket-lang.org">users@racket-lang.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, May 06, 2012 5:42 PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [racket] tcp-connect and 
  IPv6...</DIV>
  <DIV><BR></DIV>What was the answer?<BR><BR>
  <DIV class=gmail_quote>On Sun, May 6, 2012 at 3:45 AM, Rüdiger Asche <SPAN 
  dir=ltr>&lt;<A href="mailto:rac@ruediger-asche.de" 
  target=_blank>rac@ruediger-asche.de</A>&gt;</SPAN> wrote:<BR>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote>well I could have answered that myself (I did, 
    eventually)... sorry for the noise...<BR>----- Original Message ----- From: 
    "Rüdiger Asche" &lt;<A href="mailto:rac@ruediger-asche.de" 
    target=_blank>rac@ruediger-asche.de</A>&gt;<BR>To: &lt;<A 
    href="mailto:users@racket-lang.org" 
    target=_blank>users@racket-lang.org</A>&gt;<BR>Sent: Friday, May 04, 2012 
    3:10 PM<BR>Subject: [racket] tcp-connect and IPv6...
    <DIV class=HOEnZb>
    <DIV class=h5><BR><BR><BR>
    <BLOCKQUOTE 
    style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
    class=gmail_quote>Hi there,<BR><BR>is there a way on Racket to force an 
      outgoing TCP connection (tcp-coonect) to go through an IPv6 interface on a 
      multihomed 
      machine?<BR><BR>Thanks!<BR><BR><BR>____________________<BR>&nbsp;Racket 
      Users list:<BR>&nbsp;<A href="http://lists.racket-lang.org/users" 
      target=_blank>http://lists.racket-lang.org/<U></U>users</A><BR><BR></BLOCKQUOTE><BR>____________________<BR>&nbsp;Racket 
    Users list:<BR>&nbsp;<A href="http://lists.racket-lang.org/users" 
    target=_blank>http://lists.racket-lang.org/<U></U>users</A><BR></DIV></DIV></BLOCKQUOTE></DIV><BR><BR 
  clear=all>
  <DIV><BR></DIV>-- <BR><A href="http://www.wisdomandwonder.com/" 
  target=_blank>http://www.wisdomandwonder.com/</A><BR>ACM, AMA, COG, 
IEEE<BR></BLOCKQUOTE></BODY></HTML>