Chiron on vista

Oct 17, 2008 at 3:46 PM

Hello,

I used the new project eclipse4sl from Soyated-Microsoft. But I have problem with the preview feature which uses Chiron.
 
Here the post revelant in the forum :
https://sourceforge.net/forum/message.php?msg_id=5440529

and the line in source code of Chiron (with reflector) where I think the problem is : (HttpServer / method start)

try 

     this.Connect(AddressFamily.InterNetworkV6, IPAddress.IPv6Loopback);  //line A
 

catch 

    this.Connect(AddressFamily.InterNetwork, IPAddress.Loopback); 



there's no exception in the line A but the port is not opened and the request not processed. I'm under Vista SP1. I've switched the two lines to use the IP4 and now Chiron works.

Matthieu

Coordinator
Oct 17, 2008 at 9:16 PM

That code is very old; definitely not the current version of Chiron. Download a newer Chiron from this site and you won't have this problem.

Here's the newer code which works for both IPv6 and IPv4 (the solution is to listen on both protocols):

    bool ipv6Works = false;

    try {

        _socketIPv6 = Connect(AddressFamily.InterNetworkV6, IPAddress.IPv6Loopback);

        Accept(_socketIPv6);

        ipv6Works = true;

    }

    catch { }

    try {

        _socketIPv4 = Connect(AddressFamily.InterNetwork, IPAddress.Loopback);

        Accept(_socketIPv4);

    }

    catch {

        if (!ipv6Works)

            throw;

    }

~Jimmy

Oct 18, 2008 at 12:59 PM
It works, thanks for your help !