Added a hack to de-duplicate hosts and some more checks when adding a host to minimize the chances for dupes

This commit is contained in:
Diego Waxemberg
2015-04-05 20:08:21 -07:00
parent 40a04eb08b
commit fd9ee45dac
4 changed files with 98 additions and 10 deletions
+2 -1
View File
@@ -9,6 +9,7 @@
#import <Foundation/Foundation.h>
#import "MDNSManager.h"
#import "Host.h"
#import "CleanupCrew.h"
@protocol DiscoveryCallback <NSObject>
@@ -16,7 +17,7 @@
@end
@interface DiscoveryManager : NSObject <MDNSCallback>
@interface DiscoveryManager : NSObject <MDNSCallback, CleanupCallback>
- (id) initWithHosts:(NSArray*)hosts andCallback:(id<DiscoveryCallback>) callback;
- (void) startDiscovery;