Need Samples for Mono Zeroconf

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.

+2
source share
2 answers

Zeroconf is used only for announcement or discovery. That is, if you have some kind of service (for example, an http server), you can use Mono.Zeroconf to announce it. The service provided is beyond the scope of the library; you must provide it as usual. In other words, you can use the library to answer questions such as "What is the IP address of my service provider?" or announce such services ("Tell them you X.X.X.Xhave a service at the port YY).

, . ( " " ).

+1

All Articles