• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
11 #import <AvailabilityMacros.h>
12 #import <Foundation/Foundation.h>
13 
14 #import "RTCMacros.h"
15 
16 NS_ASSUME_NONNULL_BEGIN
17 
18 RTC_OBJC_EXPORT
19 @interface RTC_OBJC_TYPE (RTCDataChannelConfiguration) : NSObject
20 
21 /** Set to YES if ordered delivery is required. */
22 @property(nonatomic, assign) BOOL isOrdered;
23 
24 /** Deprecated. Use maxPacketLifeTime. */
25 @property(nonatomic, assign) NSInteger maxRetransmitTimeMs DEPRECATED_ATTRIBUTE;
26 
27 /**
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  */
31 @property(nonatomic, assign) int maxPacketLifeTime;
32 
33 /** The max number of retransmissions. -1 if unset. */
34 @property(nonatomic, assign) int maxRetransmits;
35 
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  */
39 @property(nonatomic, assign) BOOL isNegotiated;
40 
41 /** 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;
46 
47 /** Set by the application and opaque to the WebRTC implementation. */
48 @property(nonatomic) NSString* protocol;
49 
50 @end
51 
52 NS_ASSUME_NONNULL_END
53