blob: ef0562ed0ad0a01881145c39b1bc4b5f7eec429d [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
11#import <Foundation/Foundation.h>
12
13NS_ASSUME_NONNULL_BEGIN
14
15@interface RTCDataChannelConfiguration : NSObject
16
17/** Set to YES if ordered delivery is required. */
hjona2f77982016-03-04 07:09:09 -080018@property(nonatomic, assign) BOOL isOrdered;
hjonda2183c2016-01-27 13:42:28 -080019
20/**
21 * Max period in milliseconds in which retransmissions will be sent. After this
22 * time, no more retransmissions will be sent. -1 if unset.
23 */
hjona2f77982016-03-04 07:09:09 -080024@property(nonatomic, assign) int maxPacketLifeTime;
hjonda2183c2016-01-27 13:42:28 -080025
26/** The max number of retransmissions. -1 if unset. */
hjona2f77982016-03-04 07:09:09 -080027@property(nonatomic, assign) int maxRetransmits;
hjonda2183c2016-01-27 13:42:28 -080028
29/** Set to YES if the channel has been externally negotiated and we do not send
30 * an in-band signalling in the form of an "open" message.
31 */
hjona2f77982016-03-04 07:09:09 -080032@property(nonatomic, assign) BOOL isNegotiated;
hjonda2183c2016-01-27 13:42:28 -080033
34/** The stream id, or SID, for SCTP data channels. -1 if unset. */
hjona2f77982016-03-04 07:09:09 -080035@property(nonatomic, assign) int streamId;
hjonda2183c2016-01-27 13:42:28 -080036
37/** Set by the application and opaque to the WebRTC implementation. */
38@property(nonatomic) NSString *protocol;
39
40@end
41
42NS_ASSUME_NONNULL_END