blob: d9e7059171f041dd5b5f60f9810c14aafcbf4799 [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
tkchin8b577ed2016-04-19 10:04:41 -070014#import "webrtc/base/objc/RTCMacros.h"
15
hjonda2183c2016-01-27 13:42:28 -080016NS_ASSUME_NONNULL_BEGIN
17
tkchin8b577ed2016-04-19 10:04:41 -070018RTC_EXPORT
hjonda2183c2016-01-27 13:42:28 -080019@interface RTCDataChannelConfiguration : NSObject
20
21/** Set to YES if ordered delivery is required. */
hjona2f77982016-03-04 07:09:09 -080022@property(nonatomic, assign) BOOL isOrdered;
hjonda2183c2016-01-27 13:42:28 -080023
tkchin8b9ca952016-03-31 12:08:03 -070024/** Deprecated. Use maxPacketLifeTime. */
25@property(nonatomic, assign) NSInteger maxRetransmitTimeMs DEPRECATED_ATTRIBUTE;
26
hjonda2183c2016-01-27 13:42:28 -080027/**
28 * Max period in milliseconds in which retransmissions will be sent. After this
29 * time, no more retransmissions will be sent. -1 if unset.
30 */
hjona2f77982016-03-04 07:09:09 -080031@property(nonatomic, assign) int maxPacketLifeTime;
hjonda2183c2016-01-27 13:42:28 -080032
33/** The max number of retransmissions. -1 if unset. */
hjona2f77982016-03-04 07:09:09 -080034@property(nonatomic, assign) int maxRetransmits;
hjonda2183c2016-01-27 13:42:28 -080035
36/** Set to YES if the channel has been externally negotiated and we do not send
37 * an in-band signalling in the form of an "open" message.
38 */
hjona2f77982016-03-04 07:09:09 -080039@property(nonatomic, assign) BOOL isNegotiated;
hjonda2183c2016-01-27 13:42:28 -080040
tkchin8b9ca952016-03-31 12:08:03 -070041/** Deprecated. Use channelId. */
42@property(nonatomic, assign) int streamId DEPRECATED_ATTRIBUTE;
43
44/** The id of the data channel. */
45@property(nonatomic, assign) int channelId;
hjonda2183c2016-01-27 13:42:28 -080046
47/** Set by the application and opaque to the WebRTC implementation. */
48@property(nonatomic) NSString *protocol;
49
50@end
51
52NS_ASSUME_NONNULL_END