mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-04-13 03:16:26 +00:00
- now store host uuid and mac address - use uuid to check for duplicate hosts - try local and external IPs - pair status is shown - server status is shown - validate host when manually adding
28 lines
637 B
Objective-C
28 lines
637 B
Objective-C
//
|
|
// DiscoveryManager.h
|
|
// Limelight
|
|
//
|
|
// Created by Diego Waxemberg on 1/1/15.
|
|
// Copyright (c) 2015 Limelight Stream. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "MDNSManager.h"
|
|
#import "Host.h"
|
|
|
|
@protocol DiscoveryCallback <NSObject>
|
|
|
|
- (void) updateAllHosts:(NSArray*)hosts;
|
|
|
|
@end
|
|
|
|
@interface DiscoveryManager : NSOperation <MDNSCallback>
|
|
|
|
- (id) initWithHosts:(NSArray*)hosts andCallback:(id<DiscoveryCallback>) callback;
|
|
- (void) startDiscovery;
|
|
- (void) stopDiscovery;
|
|
- (void) addHostToDiscovery:(Host*)host;
|
|
- (void) discoverHost:(NSString*)hostAddress withCallback:(void (^)(Host*))callback;
|
|
|
|
@end
|