implemented mdns host discovery

This commit is contained in:
Diego Waxemberg
2014-10-14 19:21:48 -04:00
parent b828d5426b
commit f578ee4963
9 changed files with 242 additions and 66 deletions
+28
View File
@@ -0,0 +1,28 @@
//
// MDNSManager.h
// Limelight
//
// Created by Diego Waxemberg on 10/14/14.
// Copyright (c) 2014 Limelight Stream. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol MDNSCallback <NSObject>
- (void) updateHosts:(NSArray*)hosts;
@end
@interface MDNSManager : NSObject <NSNetServiceBrowserDelegate, NSNetServiceDelegate>
@property id<MDNSCallback> callback;
- (id) initWithCallback:(id<MDNSCallback>) callback;
- (void) searchForHosts;
- (NSArray*) getFoundHosts;
@end