blob: fbe342d2c86dcce4d851d1155204e217a43f4657 [file] [log] [blame]
hjonda2183c2016-01-27 13:42:28 -08001/*
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
tkchin8b9ca952016-03-31 12:08:03 -070011#import <AvailabilityMacros.h>
hjonda2183c2016-01-27 13:42:28 -080012#import <Foundation/Foundation.h>
13
14NS_ASSUME_NONNULL_BEGIN
15
16@interface RTCDataChannelConfiguration : NSObject
17
18/** Set to YES if ordered delivery is required. */
hjona2f77982016-03-04 07:09:09 -080019@property(nonatomic, assign) BOOL isOrdered;
hjonda2183c2016-01-27 13:42:28 -080020
tkchin8b9ca952016-03-31 12:08:03 -070021/** Deprecated. Use maxPacketLifeTime. */
22@property(nonatomic, assign) NSInteger maxRetransmitTimeMs DEPRECATED_ATTRIBUTE;
23
hjonda2183c2016-01-27 13:42:28 -080024/**
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 */
hjona2f77982016-03-04 07:09:09 -080028@property(nonatomic, assign) int maxPacketLifeTime;
hjonda2183c2016-01-27 13:42:28 -080029
30/** The max number of retransmissions. -1 if unset. */
hjona2f77982016-03-04 07:09:09 -080031@property(nonatomic, assign) int maxRetransmits;
hjonda2183c2016-01-27 13:42:28 -080032
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 */
hjona2f77982016-03-04 07:09:09 -080036@property(nonatomic, assign) BOOL isNegotiated;
hjonda2183c2016-01-27 13:42:28 -080037
tkchin8b9ca952016-03-31 12:08:03 -070038/** 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;
hjonda2183c2016-01-27 13:42:28 -080043
44/** Set by the application and opaque to the WebRTC implementation. */
45@property(nonatomic) NSString *protocol;
46
47@end
48
49NS_ASSUME_NONNULL_END