hjon | da2183c | 2016-01-27 13:42:28 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
tkchin | 8b9ca95 | 2016-03-31 12:08:03 -0700 | [diff] [blame] | 11 | #import <AvailabilityMacros.h> |
hjon | da2183c | 2016-01-27 13:42:28 -0800 | [diff] [blame] | 12 | #import <Foundation/Foundation.h> |
| 13 | |
| 14 | NS_ASSUME_NONNULL_BEGIN |
| 15 | |
| 16 | @interface RTCDataChannelConfiguration : NSObject |
| 17 | |
| 18 | /** Set to YES if ordered delivery is required. */ |
hjon | a2f7798 | 2016-03-04 07:09:09 -0800 | [diff] [blame] | 19 | @property(nonatomic, assign) BOOL isOrdered; |
hjon | da2183c | 2016-01-27 13:42:28 -0800 | [diff] [blame] | 20 | |
tkchin | 8b9ca95 | 2016-03-31 12:08:03 -0700 | [diff] [blame] | 21 | /** Deprecated. Use maxPacketLifeTime. */ |
| 22 | @property(nonatomic, assign) NSInteger maxRetransmitTimeMs DEPRECATED_ATTRIBUTE; |
| 23 | |
hjon | da2183c | 2016-01-27 13:42:28 -0800 | [diff] [blame] | 24 | /** |
| 25 | * Max period in milliseconds in which retransmissions will be sent. After this |
| 26 | * time, no more retransmissions will be sent. -1 if unset. |
| 27 | */ |
hjon | a2f7798 | 2016-03-04 07:09:09 -0800 | [diff] [blame] | 28 | @property(nonatomic, assign) int maxPacketLifeTime; |
hjon | da2183c | 2016-01-27 13:42:28 -0800 | [diff] [blame] | 29 | |
| 30 | /** The max number of retransmissions. -1 if unset. */ |
hjon | a2f7798 | 2016-03-04 07:09:09 -0800 | [diff] [blame] | 31 | @property(nonatomic, assign) int maxRetransmits; |
hjon | da2183c | 2016-01-27 13:42:28 -0800 | [diff] [blame] | 32 | |
| 33 | /** Set to YES if the channel has been externally negotiated and we do not send |
| 34 | * an in-band signalling in the form of an "open" message. |
| 35 | */ |
hjon | a2f7798 | 2016-03-04 07:09:09 -0800 | [diff] [blame] | 36 | @property(nonatomic, assign) BOOL isNegotiated; |
hjon | da2183c | 2016-01-27 13:42:28 -0800 | [diff] [blame] | 37 | |
tkchin | 8b9ca95 | 2016-03-31 12:08:03 -0700 | [diff] [blame] | 38 | /** Deprecated. Use channelId. */ |
| 39 | @property(nonatomic, assign) int streamId DEPRECATED_ATTRIBUTE; |
| 40 | |
| 41 | /** The id of the data channel. */ |
| 42 | @property(nonatomic, assign) int channelId; |
hjon | da2183c | 2016-01-27 13:42:28 -0800 | [diff] [blame] | 43 | |
| 44 | /** Set by the application and opaque to the WebRTC implementation. */ |
| 45 | @property(nonatomic) NSString *protocol; |
| 46 | |
| 47 | @end |
| 48 | |
| 49 | NS_ASSUME_NONNULL_END |