Moved discovery to a worker thread per host

This commit is contained in:
Diego Waxemberg
2015-01-02 23:56:28 -05:00
parent ee61dc9a59
commit 5aeedb894a
5 changed files with 166 additions and 85 deletions
+2 -2
View File
@@ -16,12 +16,12 @@
@end
@interface DiscoveryManager : NSOperation <MDNSCallback>
@interface DiscoveryManager : NSObject <MDNSCallback>
- (id) initWithHosts:(NSArray*)hosts andCallback:(id<DiscoveryCallback>) callback;
- (void) startDiscovery;
- (void) stopDiscovery;
- (void) addHostToDiscovery:(Host*)host;
- (BOOL) addHostToDiscovery:(Host*)host;
- (void) removeHostFromDiscovery:(Host*)host;
- (void) discoverHost:(NSString*)hostAddress withCallback:(void (^)(Host*))callback;