OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #import "RTCDataChannelConfiguration.h" | 11 #import "RTCDataChannelConfiguration.h" |
12 | 12 |
13 #import "webrtc/api/objc/RTCDataChannelConfiguration+Private.h" | 13 #import "webrtc/api/objc/RTCDataChannelConfiguration+Private.h" |
14 #import "webrtc/base/objc/NSString+StdString.h" | 14 #import "webrtc/base/objc/NSString+StdString.h" |
15 | 15 |
16 @implementation RTCDataChannelConfiguration | 16 @implementation RTCDataChannelConfiguration |
17 | 17 |
18 @synthesize nativeDataChannelInit = _nativeDataChannelInit; | 18 @synthesize nativeDataChannelInit = _nativeDataChannelInit; |
19 | 19 |
20 - (BOOL)isOrdered { | 20 - (BOOL)isOrdered { |
21 return _nativeDataChannelInit.ordered; | 21 return _nativeDataChannelInit.ordered; |
22 } | 22 } |
23 | 23 |
24 - (void)setIsOrdered:(BOOL)isOrdered { | 24 - (void)setIsOrdered:(BOOL)isOrdered { |
25 _nativeDataChannelInit.ordered = isOrdered; | 25 _nativeDataChannelInit.ordered = isOrdered; |
26 } | 26 } |
27 | 27 |
| 28 - (NSInteger)maxRetransmitTimeMs { |
| 29 return self.maxPacketLifeTime; |
| 30 } |
| 31 |
| 32 - (void)setMaxRetransmitTimeMs:(NSInteger)maxRetransmitTimeMs { |
| 33 self.maxPacketLifeTime = maxRetransmitTimeMs; |
| 34 } |
| 35 |
28 - (int)maxPacketLifeTime { | 36 - (int)maxPacketLifeTime { |
29 return _nativeDataChannelInit.maxRetransmitTime; | 37 return _nativeDataChannelInit.maxRetransmitTime; |
30 } | 38 } |
31 | 39 |
32 - (void)setMaxPacketLifeTime:(int)maxPacketLifeTime { | 40 - (void)setMaxPacketLifeTime:(int)maxPacketLifeTime { |
33 _nativeDataChannelInit.maxRetransmitTime = maxPacketLifeTime; | 41 _nativeDataChannelInit.maxRetransmitTime = maxPacketLifeTime; |
34 } | 42 } |
35 | 43 |
36 - (int)maxRetransmits { | 44 - (int)maxRetransmits { |
37 return _nativeDataChannelInit.maxRetransmits; | 45 return _nativeDataChannelInit.maxRetransmits; |
(...skipping 13 matching lines...) Expand all Loading... |
51 | 59 |
52 - (BOOL)isNegotiated { | 60 - (BOOL)isNegotiated { |
53 return _nativeDataChannelInit.negotiated; | 61 return _nativeDataChannelInit.negotiated; |
54 } | 62 } |
55 | 63 |
56 - (void)setIsNegotiated:(BOOL)isNegotiated { | 64 - (void)setIsNegotiated:(BOOL)isNegotiated { |
57 _nativeDataChannelInit.negotiated = isNegotiated; | 65 _nativeDataChannelInit.negotiated = isNegotiated; |
58 } | 66 } |
59 | 67 |
60 - (int)streamId { | 68 - (int)streamId { |
| 69 return self.channelId; |
| 70 } |
| 71 |
| 72 - (void)setStreamId:(int)streamId { |
| 73 self.channelId = streamId; |
| 74 } |
| 75 |
| 76 - (int)channelId { |
61 return _nativeDataChannelInit.id; | 77 return _nativeDataChannelInit.id; |
62 } | 78 } |
63 | 79 |
64 - (void)setStreamId:(int)streamId { | 80 - (void)setChannelId:(int)channelId { |
65 _nativeDataChannelInit.id = streamId; | 81 _nativeDataChannelInit.id = channelId; |
66 } | 82 } |
67 | 83 |
68 @end | 84 @end |
OLD | NEW |