I would like to know whether bonjour is a public or private api?Can we use it in our apps directly.
Yes! Bonjour is Public API.
Yeah you can use for your applications. For Publishing the Service you need to use NSNetService and for Browsing you need to use NSNetServiceBrowser Delegates. You can send data using NSStream. Make sure in order to communicate with bonjour devices. Devices must be in same Wi - Fi Router