<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    This is possible on Unix (and Windows) using the IPV6_V6ONLY socket
    option. I'm not sure however about how widely this is adopted.<br>
    <br>
    Kornel<br>
    <br>
    <div class="moz-cite-prefix">On 10/26/2014 5:01 AM, Miguel de Icaza
      wrote:<br>
    </div>
    <blockquote
cite="mid:CANqeOFrnAn9yB4qdDd25zoD=sGqKodKur9VZzeUfas_2MUn77A@mail.gmail.com"
      type="cite">
      <div dir="ltr">I am not sure that Unix can support the idiom
        surfaced by the two-parameter Socket.
        <div><br>
        </div>
        <div>If K wants to be cross platform, it likely needs to create
          two separate sockets, one for each domain, and not assume that
          you can create a single socket that can be used with multiple
          domains at once.</div>
        <div><br>
        </div>
        <div>Miguel</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Sat, Oct 25, 2014 at 10:38 AM, Kei
          Nakazawa <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:muo@muo.jp" target="_blank">muo@muo.jp</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>
                <div>
                  <div>
                    <div>Hello,<br>
                      <br>
                    </div>
                    I noticed some test code of Kestrel (web server for
                    <a moz-do-not-send="true" href="http://ASP.NET"
                      target="_blank">ASP.NET</a> vNext) fails to
                    compile on Linux hosts.<br>
                    <br>
                    /kestrel/test/Microsoft.AspNet.Server.KestrelTests/EngineTests.cs(325,34):
                    error CS1729: 'Socket' does not contain a
                    constructor that takes 2 arguments<br>
                    ref: <a moz-do-not-send="true"
href="https://github.com/aspnet/KestrelHttpServer/blob/dev/test/Microsoft.AspNet.Server.KestrelTests/EngineTests.cs#L325"
                      target="_blank">https://github.com/aspnet/KestrelHttpServer/blob/dev/test/Microsoft.AspNet.Server.KestrelTests/EngineTests.cs#L325</a><br>
                    <br>
                  </div>
                  It's because 2 args ctor is a new one introduced in
                  .NET 4.5 and not currently exist on Mono. I found a
                  bugzilla entry mentioning this issue: <a
                    moz-do-not-send="true"
                    href="https://bugzilla.xamarin.com/show_bug.cgi?id=20048"
                    target="_blank">https://bugzilla.xamarin.com/show_bug.cgi?id=20048</a>
                  and dug Mono code for finding solutions.<br>
                  <br>
                </div>
                After couple of minutes of investigation, I gave up to
                write a "clean" dual stack (IPv4/v6) support and wrote a
                simple proxy ctor:<br>
                <a moz-do-not-send="true"
                  href="https://github.com/mono/mono/pull/1364/files"
                  target="_blank">https://github.com/mono/mono/pull/1364/files</a>
                (Thanks @martinjt for reviewing my pull-req.)<br>
                <br>
              </div>
              <div>As I don't see any demands for IPv4/v6 dual stack
                support around <a moz-do-not-send="true"
                  href="http://ASP.NET" target="_blank">ASP.NET</a>
                vNext community, I believe hard-coding protocol version
                to v4 is just enough and better than nothing at least
                for now (of course, full support of dual stack would be
                great).<br>
              </div>
              <div><br>
              </div>
              <div>Any comments/feedback are welcomed.<br>
              </div>
              <div><br>
              </div>
              <div>Regards, Kei.<br>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            Mono-devel-list mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Mono-devel-list@lists.ximian.com">Mono-devel-list@lists.ximian.com</a><br>
            <a moz-do-not-send="true"
              href="http://lists.ximian.com/mailman/listinfo/mono-devel-list"
              target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Mono-devel-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mono-devel-list@lists.ximian.com">Mono-devel-list@lists.ximian.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ximian.com/mailman/listinfo/mono-devel-list">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>