blob: d3e8510ee5708e9801c22dd83d4866daa2f32f20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
//
// SDLSecondaryTransportPrimaryProtocolHandler.h
// SmartDeviceLink-iOS
//
// Created by Sho Amano on 2018/08/09.
// Copyright © 2018 Xevo Inc. All rights reserved.
//
#import "SDLProtocolListener.h"
@class SDLProtocol;
@class SDLSecondaryTransportManager;
NS_ASSUME_NONNULL_BEGIN
/**
A class to receive event from primary transport.
*/
@interface SDLSecondaryTransportPrimaryProtocolHandler : NSObject <SDLProtocolListener>
/** The header of Start Service ACK frame received on primary transport. */
@property (copy, nonatomic) SDLProtocolHeader *primaryRPCHeader;
/**
Create a new primary protocol handler with given SDLSecondaryTransportManager and SDLProtocol instances.
@param manager instance of SDLSecondaryTransportManager
@param primaryProtocol instance of SDLProtocol for the primary transport
@return A new primary protocol handler
*/
- (instancetype)initWithSecondaryTransportManager:(SDLSecondaryTransportManager *)manager
primaryProtocol:(SDLProtocol *)primaryProtocol;
/**
* Start the handler.
*/
- (void)start;
/**
* Stop the handler.
*/
- (void)stop;
@end
NS_ASSUME_NONNULL_END
|