Rewrote the Bonjour classes, using the low-level <dns_sd.h> API. They're now subclasses of MYDNSService.
5 // Created by Jens Alfke on 1/22/08.
6 // Copyright 2008 Jens Alfke. All rights reserved.
9 #import "MYDNSService.h"
12 /** Searches for Bonjour services of a specific type. */
13 @interface MYBonjourBrowser : MYDNSService
16 NSString *_serviceType;
19 NSMutableSet *_services, *_addServices, *_rmvServices;
22 /** Initializes a new BonjourBrowser.
23 Call -start to begin browsing.
24 @param serviceType The name of the service type to look for, e.g. "_http._tcp". */
25 - (id) initWithServiceType: (NSString*)serviceType;
27 /** Is the browser currently browsing? */
28 @property (readonly) BOOL browsing;
30 /** The set of currently found services. These are instances of the serviceClass,
31 which is BonjourService by default.
32 This is KV-observable. */
33 @property (readonly) NSSet *services;
35 /** The class of objects to create to represent services.
36 The default value is [BonjourService class]; you can change this, but only
37 to a subclass of that. */
38 @property Class serviceClass;