[Mono-dev] exercising mono.zeroconf with MZClient tool only resolves first service found

Belesi, Joe (ES) Joe.Belesi at ngc.com
Wed May 16 17:37:55 UTC 2012


I am exercising mono.zeroconf on a Windows XP SP3 machine, hosting .NET Framework 2.0 SP2 and Bonjour 2.0.2 using the MZClient command line tool.  When I execute MZClient without resolving services to hosts, registering for the service _http._tcp, the results are as follows:

C:\Documents and Settings\Engineering\Desktop\mono-zeroconf-0.9.0-binary\bin>MZClient -t _http._tcp
Hit ^C when you're bored waiting for responses.

*** Found name = 'hp LaserJet 4350 [22C220]', type = '_http._tcp.', domain = 'local.'
*** Found name = 'hp color LaserJet 4650 [D96F7E]', type = '_http._tcp.', domain = 'local.'
*** Found name = 'hp LaserJet 4350 [C05D3B]', type = '_http._tcp.', domain = 'local.'
*** Found name = 'hp color LaserJet 4600 [B9C822]', type = '_http._tcp.', domain = 'local.'
*** Found name = 'hp LaserJet 4350 [C1D9A6]', type = '_http._tcp.', domain = 'local.'
*** Found name = 'hp LaserJet 4350 [C1D9C8]', type = '_http._tcp.', domain = 'local.'
*** Found name = 'peoh9-7500-03 Exec', type = '_http._tcp.', domain = 'local.'
*** Found name = 'hp color LaserJet 4650 [DE911C]', type = '_http._tcp.', domain = 'local.'
*** Found name = 'hp LaserJet 4350 [C04DFD]', type = '_http._tcp.', domain = 'local.'
*** Found name = 'hp color LaserJet 5550 [EB1B66]', type = '_http._tcp.', domain = 'local.'
*** Found name = 'Phaser 7500DT (00:00:aa:c2:3a:84)', type = '_http._tcp.', domain = 'local.'
*** Found name = 'collabnetsvn', type = '_http._tcp.', domain = 'local.'

Twelve _http._tcp services were found.  However, when I provide the "-r" option to resolve services to hosts, the results are as follows:

C:\Documents and Settings\Engineering\Desktop\mono-zeroconf-0.9.0-binary\bin>MZClient -t _http._tcp -r
Hit ^C when you're bored waiting for responses.

*** Found name = 'hp LaserJet 4350 [22C220]', type = '_http._tcp.', domain = 'local.'
*** Resolved name = 'hp\032LaserJet\0324350\032[22C220]._http._tcp.local.', host ip = '167.225.16.250', hostname = , port = '0', interface = '2', address type = 'Any', TXT Record = [ = '']

Only one service is found, and hence only one service is resolved.  I looked at the MZClient source code, and it appears that providing the "-r" option should not impact the number of services found, since it just assigns the IResolvableService  interface class "Resolved" callback and calls the IResolvableService  interface class "Resolve()" method for each service found.

Why is only one service found when using the mono.zeroconf API to resolve services to hosts?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120516/965fa186/attachment.html>


More information about the Mono-devel-list mailing list