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
+19
View File
@@ -0,0 +1,19 @@
//
// DiscoveryWorker.h
// Limelight
//
// Created by Diego Waxemberg on 1/2/15.
// Copyright (c) 2015 Limelight Stream. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Host.h"
@interface DiscoveryWorker : NSOperation
- (id) initWithHost:(Host*)host uniqueId:(NSString*)uniqueId cert:(NSData*)cert;
- (Host*) getHost;
+ (void) updateHost:(Host*)host withServerInfo:(NSData*)serverInfoData;
@end