-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathServiceFinder.h
39 lines (28 loc) · 1.06 KB
/
ServiceFinder.h
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
//
// ServiceFinder.h
// prankstr
//
// Created by Simon Fransson on 09/06/15.
// Copyright (c) 2015 Simon Fransson. All rights reserved.
//
#import <Foundation/Foundation.h>
@class ServiceFinder;
@protocol ServiceFinderDelegate <NSObject>
- (void)serviceFinderDidStartBrowsing:(ServiceFinder *)serviceFinder;
- (void)serviceFinderDidFinishBrowsing:(ServiceFinder *)serviceFinder;
- (void)serviceFinder:(ServiceFinder *)serviceFinder didFindService:(NSNetService *)netService;
@end
@class ClientController;
@interface ServiceFinder : NSObject <NSNetServiceBrowserDelegate, NSNetServiceDelegate> {
@protected
int _numResolvedHosts;
}
@property (strong, nonatomic) NSNetServiceBrowser *netServiceBrowser;
@property (strong, nonatomic) NSMutableArray *serviceDomains;
@property (strong, nonatomic) NSMutableArray *availableServices;
@property (readonly, nonatomic) BOOL isDone;
@property (weak, nonatomic) id delegate;
- (void)findHosts;
+ (ClientController *)clientControllerForNetService:(NSNetService *)netService;
- (ClientController *)bestClientController;
@end