[Mono-list] Mono.Zeroconf 0.8.0 ... bug in resolve() or serviceremoved() functions ?
jkim
kimbike767 at yahoo.com
Tue Oct 21 03:03:21 EDT 2008
mpfj wrote:
>
> Hi
>
> I've also found a problem moving from 0.7.6 to 0.8.0
>
> In the code I'm developing, I have tested simple services scanning using
> ServiceAdded and ServiceRemoved. This all works fine ... i.e. I can see
> machines being added / removed as they are powered on / off.
>
> But if I then use ...
>
> args.Service.Resolved += OnServiceResolved;
> args.Service.Resolve();
>
> ... I can only see machines being *added* and never removed.
>
> This also shows up with the MZClient tool. Using MZClient, I first do a
> default scan. As you can see, it returns a list of (Ubuntu) workstations
> (which are allrunning Avahi by default).
>
> C:\Desktop\mono-zeroconf-0.8.0-binary\mono-zeroconf-0.8.0-binary
> \bin>MZClient.exe
> Hit ^C when you're bored waiting for responses.
>
> *** Found name = 'ubuntu [00:18:f3:4a:23:70]', type =
> '_workstation._tcp.',
> domain = 'local.'
> *** Found name = 'mailhost [00:30:1b:ad:79:33]', type =
> '_workstation._tcp.',
> domain = 'local.'
> *** Found name = 'mpfj-ubuntu [00:13:8f:c7:99:f7]', type =
> '_workstation._tcp.',domain = 'local.'
> *** Found name = 'mob-ubuntu [00:1f:d0:55:7d:33]', type =
> '_workstation._tcp.',domain = 'local.'
> ^C
>
> But if I then use the "resolve" option, it only gives us one result ...
>
> C:\Desktop\mono-zeroconf-0.8.0-binary\mono-zeroconf-0.8.0-binary
> \bin>MZClient.exe --resolve
> Hit ^C when you're bored waiting for responses.
>
> *** Found name = 'ubuntu [00:18:f3:4a:23:70]', type =
> '_workstation._tcp.',
> domain = 'local.'
> *** Resolved name =
> 'ubuntu\032[00:18:f3:4a:23:70]._workstation._tcp.local.',
> host ip = '10.0.0.100', hostname = , port = '9', interface = '3', address
> type ='Any', TXT Record = [ = '']
>
> ... and that's it !!
>
> So I'm guessing something's broken in the resolve code ???
>
> Regards
> Mark
>
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
In OnResolveReply() method of
Mono.Zeroconf.Providers.Bonjour\BrwoseService.cs,
try changing the second 'if (...)' statement
from
if (AddressProtocol == AddressProtocol.Any || AddressProtocol ==
AddressProtocol.IPv6) {
to
if (AddressProtocol == AddressProtocol.IPv6) {
--
View this message in context: http://www.nabble.com/Mono.Zeroconf-0.8.0-...-bug-in-resolve%28%29-or-serviceremoved%28%29-functions---tp19722226p20084583.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list