[Mono-list] Mono.Zeroconf 0.8.0 ... bug in resolve() or serviceremoved() functions ?
Mark Jackson
mpfj at mimc.co.uk
Mon Sep 29 07:32:01 EDT 2008
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
More information about the Mono-list
mailing list