2014-08-31 13:13:46 -04:00
|
|
|
//
|
|
|
|
|
// Connection.h
|
|
|
|
|
// Limelight-iOS
|
|
|
|
|
//
|
|
|
|
|
// Created by Diego Waxemberg on 1/19/14.
|
|
|
|
|
// Copyright (c) 2014 Diego Waxemberg. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
2014-10-19 00:09:47 -04:00
|
|
|
#import "VideoDecoderRenderer.h"
|
2014-10-20 19:20:50 -04:00
|
|
|
#import "StreamConfiguration.h"
|
2014-08-31 13:13:46 -04:00
|
|
|
|
2014-10-21 01:02:04 -04:00
|
|
|
@protocol ConTermCallback <NSObject>
|
|
|
|
|
|
|
|
|
|
- (void) connectionTerminated;
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
2014-08-31 13:13:46 -04:00
|
|
|
@interface Connection : NSOperation <NSStreamDelegate>
|
|
|
|
|
|
2014-10-21 01:02:04 -04:00
|
|
|
-(id) initWithConfig:(StreamConfiguration*)config renderer:(VideoDecoderRenderer*)myRenderer connectionTerminatedCallback:(id<ConTermCallback>)callback;
|
2014-10-21 01:54:31 -04:00
|
|
|
-(void) terminate;
|
2014-08-31 13:13:46 -04:00
|
|
|
-(void) main;
|
|
|
|
|
|
|
|
|
|
@end
|