KimSchneider wrote: > > Now I've got the SVN Version 0.80 and that bug seems to be fixed, BUT the > serviceRemoved event doesn't fire, after the server leaves the network. > > Short: > - 0.76 works fine but crashes sometimes > - 0.80 runs stable but doesn't fire serviceRemoved event >
Hi I've also found the same problem (also when moving from 0.7.6 to 0.8.0). *BUT* I think it's connected to the .Resolve() function. 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 tools. Using MZClient, I first do a default scan. As you can see, it returns a list of (Ubuntu) workstations (which are all running 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 -- View this message in context: http://n2.nabble.com/*bug*-Zeroconf-0.80-serviceRemoved-Bonjour-tp1090074p1125594.html Sent from the Mono - General mailing list archive at Nabble.com. _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
