public
Description: A Cocoa / Objective-C application that uses the Bonjour service to share contact details between macs on the same network.
Homepage:
Clone URL: git://github.com/Abizern/bonsoir.git
bonsoir / BonsoirClient.h
100644 42 lines (31 sloc) 1.073 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// BonsoirClient.h
// Bonsoir
//
// Created by R. Tyler Ballance on 8/26/06.
//
// This is the Client object, I think.
 
#import <Cocoa/Cocoa.h>
 
 
@interface BonsoirClient : NSObject {
@private
NSMutableArray *discoveredServices;
NSNetServiceBrowser *serviceBrowser;
NSString *notificationName;
 
BOOL useHostNamesInDataSource;
BOOL resolveHostNames;
}
@property BOOL useHostNamesInDataSource;
@property BOOL resolveHostNames;
 
- (id)initWithNotificationName:(NSString *)name;
 
//! search for services with the specified serviceType inside the domain
- (void)searchForServicesOfType:(NSString *)serviceType inDomain:(NSString *)domain;
 
- (void)stop;
 
//! release discoveredServices along with dealloc'ing self
- (void)dealloc;
 
//! return the NSMutableArray (discoveredServices) of NSNetServices
- (NSMutableArray *)discoveredServices;
 
//! return the string of the hostname at the specified index
- (NSString *)getHostNameAtIndex:(int)index;
//! return the NSNetService object for a specific index
- (NSNetService *)getNetServiceAtIndex:(int)index;
 
@end