I have an iPhone app that is published through Bonjour. Mac compatible, they synchronize and share data. Now I need to port this small Mac app to Windows. I decided to go with .NET (because this is what I know).
The application is not complicated, but Im in the early stages. I need to view / open Bonjour services. For this task, Ive downloaded Mono.Zeroconf and Apples latest SDK (which includes a couple of C # samples).
I really don’t paste the code because Im really copy / paste samples. In fact, Mono.Zeroconf has MZClient.exe, which can be used to test the "whole API".
My first test was - in the same window - open two cmd.exe and start MZclient, registering the service, and on the other - start it and "open".
This does not work.
Here is the server:
C:\MZ>MZClient -v -p "_http._tcp 80 mysimpleweb" *** Registering name = 'mysimpleweb', type = '_http._tcp', domain = 'local.' *** Registered name = 'mysimpleweb'
On another terminal:
c:\MZ>MZClient -v -t "_http._tcp" Creating a ServiceBrowser with the following settings: Interface = 0 (All) Address Protocol = Any Domain = local Registration Type = _http._tcp Resolve Shares = False Hit ^C when you're bored waiting for responses.
And here it is. Nothing has happened. Ive, of course, tried with various services, but to no avail. Even played a little with this subject area. Remember that this is the same box. I tried on another computer because it was a virtual machine inside OSX, so I went ahead and tried a “clean” XP victory. Nothing.
note : I have the Apple Bonjour Service app (up and down) as well as the Apple SDK (installed later).
Given that this did not help, I went ahead and decided to try the Apple SDK with Interop and a few pre-compiled samples (and its source code).
The story, neither mDSNBrowser.exe, nor SimpleChat.exe do not work / do not see / do not open anything.
My box is Win7 in Parallels, but that doesn’t seem to affect anything, given that native XP has the same problems.
What am I doing so terribly wrong?