I am trying to make a simple application to demonstrate the concept, the code of which I can use in the future. In particular, I want the iPhone to run an application that sends XML data to the Bonjour service. I already have an Objective-C application that runs on a Mac and does this, but I need to do it on Windows with a strong Mono Zeroconf preference, because the project may include using the Mono framework later.
To do this, I need a working sample of using the Mono Zeroconf library. The examples I could find on the website are not enough. ALl, what they allow me to do is register the service, but nothing after that. In particular, I have this:
RegisterService service = new RegisterService();
service.Name = "AirControlServer";
service.RegType = "_http.tcp.";
service.ReplyDomain = "local.";
service.Port = 3689;
service.Register();
And now I absolutely do not understand what to do. If someone could associate me with some sample code or something else, that would be very nice.
Thanks.
source
share