[Mono-bugs] [Bug 529463] New: Bonjour support is broken in 0.9.0
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Aug 8 00:26:23 EDT 2009
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: abockover at novell.com
ReportedBy: jbcooley at tuxinthebox.net
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list