ROZeroConfBrowserDelegate

Overview

The informal protocol to be implemented by a ROZeroConfBrowser delegate object. Declares methods to notify the delegate object about services availability changes.

Location


Required Methods


zeroConfBrowser:didFindService:moreComing:

This method is called when the browser discovers a new service.

- (void) zeroConfBrowser:(ROZeroConfBrowser *)zeroConfBrowser didFindService:(NSNetService *)netService moreComing:(BOOL)moreServicesComing

Parameters:

  • zeroConfBrowser: The service browser - the source of the notification.
  • netService: The object describing the discovered service. Note that the service is not resolved (i.e. host address and port are unknown) at the moment of notification. The user should resolve the service. Please refer to the Bonjour Discovery sample description and code.
  • moreServicesComing: The boolean value indicating whether the delegate will receive more service notifications or not. The series of notifications may be received when the browser just started, in this case it may be reasonable to perform not certain actions (e.g. user interface update) until all available services become known.

zeroConfBrowser:didRemoveService:moreComing:

This method is called when the previously discovered service has gone down in a graceful way.

- (void) zeroConfBrowser:(ROZeroConfBrowser *)zeroConfBrowser didRemoveService:(NSNetService *)netService moreComing:(BOOL)moreServicesComing

Parameters:

  • zeroConfBrowser: The service browser - the source of the notification.
  • netService: The object describing the service that has gone.
  • moreServicesComing: The boolean value indicating whether the delegate will receive more service notifications or not. It should be very rare to receive the series of didRemoveService notifications, unlike with the previous method.