http://bugzilla.novell.com/show_bug.cgi?id=529463


           Summary: Bonjour support is broken in 0.9.0
    Classification: Mono
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: LittleEndian
        OS/Version: Windows Vista
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Mono.Zeroconf
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: Community User


Bonjour support for Mono.Zeroconf is broken in the 0.9.0 release.  This can be
seen in this sample program.

using System;

namespace TestRegisterService
{
    class Program
    {
        static void Main(string[] args)
        {
            Mono.Zeroconf.RegisterService service = new
Mono.Zeroconf.RegisterService();
            service.Name = "Test";
            service.Port = 7688;
            service.RegType = "_tivo-hme._tcp";
            service.TxtRecord = new Mono.Zeroconf.TxtRecord();
            service.TxtRecord.Add("version", "0.40");
            service.TxtRecord.Add("path", "/test/");
            service.Register();
            Console.ReadKey();
        }
    }
}

The service is not visible to MZClient in 0.9.0, but is in 0.8.0.  Command line
used:
MZClient.exe -v -r -t _tivo-hme._tcp

This seems to be due to the IPAddress.HostToNetworkOrder and
IPAddress.NetworkToHostOrder calls made in Service.cs.  In 0.9.0 there is a
cast to an int and this causes the resulting short to be 0 on little endian
machines.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to