* Refactored MYPortMapper to use a new abstract base class MYDNSService; that way I can re-use it later for implementing Bonjour.
* Fixed issue #1: a memory leak in BLIPProperties, reported by codechemist.
5 // Created by Jens Alfke on 1/22/08.
6 // Copyright 2008 Jens Alfke. All rights reserved.
9 #import <Foundation/Foundation.h>
12 /** Searches for Bonjour services of a specific type. */
13 @interface MYBonjourBrowser : NSObject
16 NSString *_serviceType;
17 NSNetServiceBrowser *_browser;
21 NSMutableSet *_services, *_addServices, *_rmvServices;
24 /** Initializes a new BonjourBrowser.
25 Call -start to begin browsing.
26 @param serviceType The name of the service type to look for, e.g. "_http._tcp". */
27 - (id) initWithServiceType: (NSString*)serviceType;
29 /** Starts browsing. This is asynchronous, so nothing will happen immediately. */
32 /** Stops browsing. */
35 /** Is the browser currently browsing? */
36 @property (readonly) BOOL browsing;
38 /** The current error status, if any.
39 This is KV-observable. */
40 @property (readonly,retain) NSError* error;
42 /** The set of currently found services. These are instances of the serviceClass,
43 which is BonjourService by default.
44 This is KV-observable. */
45 @property (readonly) NSSet *services;
47 /** The class of objects to create to represent services.
48 The default value is [BonjourService class]; you can change this, but only
49 to a subclass of that. */
50 @property Class serviceClass;