1*d9f75844SAndroid Build Coastguard Worker /* 2*d9f75844SAndroid Build Coastguard Worker * Copyright 2015 The WebRTC project authors. All Rights Reserved. 3*d9f75844SAndroid Build Coastguard Worker * 4*d9f75844SAndroid Build Coastguard Worker * Use of this source code is governed by a BSD-style license 5*d9f75844SAndroid Build Coastguard Worker * that can be found in the LICENSE file in the root of the source 6*d9f75844SAndroid Build Coastguard Worker * tree. An additional intellectual property rights grant can be found 7*d9f75844SAndroid Build Coastguard Worker * in the file PATENTS. All contributing project authors may 8*d9f75844SAndroid Build Coastguard Worker * be found in the AUTHORS file in the root of the source tree. 9*d9f75844SAndroid Build Coastguard Worker */ 10*d9f75844SAndroid Build Coastguard Worker 11*d9f75844SAndroid Build Coastguard Worker #import <AvailabilityMacros.h> 12*d9f75844SAndroid Build Coastguard Worker #import <Foundation/Foundation.h> 13*d9f75844SAndroid Build Coastguard Worker 14*d9f75844SAndroid Build Coastguard Worker #import "RTCMacros.h" 15*d9f75844SAndroid Build Coastguard Worker 16*d9f75844SAndroid Build Coastguard Worker NS_ASSUME_NONNULL_BEGIN 17*d9f75844SAndroid Build Coastguard Worker 18*d9f75844SAndroid Build Coastguard Worker RTC_OBJC_EXPORT 19*d9f75844SAndroid Build Coastguard Worker @interface RTC_OBJC_TYPE (RTCDataChannelConfiguration) : NSObject 20*d9f75844SAndroid Build Coastguard Worker 21*d9f75844SAndroid Build Coastguard Worker /** Set to YES if ordered delivery is required. */ 22*d9f75844SAndroid Build Coastguard Worker @property(nonatomic, assign) BOOL isOrdered; 23*d9f75844SAndroid Build Coastguard Worker 24*d9f75844SAndroid Build Coastguard Worker /** Deprecated. Use maxPacketLifeTime. */ 25*d9f75844SAndroid Build Coastguard Worker @property(nonatomic, assign) NSInteger maxRetransmitTimeMs DEPRECATED_ATTRIBUTE; 26*d9f75844SAndroid Build Coastguard Worker 27*d9f75844SAndroid Build Coastguard Worker /** 28*d9f75844SAndroid Build Coastguard Worker * Max period in milliseconds in which retransmissions will be sent. After this 29*d9f75844SAndroid Build Coastguard Worker * time, no more retransmissions will be sent. -1 if unset. 30*d9f75844SAndroid Build Coastguard Worker */ 31*d9f75844SAndroid Build Coastguard Worker @property(nonatomic, assign) int maxPacketLifeTime; 32*d9f75844SAndroid Build Coastguard Worker 33*d9f75844SAndroid Build Coastguard Worker /** The max number of retransmissions. -1 if unset. */ 34*d9f75844SAndroid Build Coastguard Worker @property(nonatomic, assign) int maxRetransmits; 35*d9f75844SAndroid Build Coastguard Worker 36*d9f75844SAndroid Build Coastguard Worker /** Set to YES if the channel has been externally negotiated and we do not send 37*d9f75844SAndroid Build Coastguard Worker * an in-band signalling in the form of an "open" message. 38*d9f75844SAndroid Build Coastguard Worker */ 39*d9f75844SAndroid Build Coastguard Worker @property(nonatomic, assign) BOOL isNegotiated; 40*d9f75844SAndroid Build Coastguard Worker 41*d9f75844SAndroid Build Coastguard Worker /** Deprecated. Use channelId. */ 42*d9f75844SAndroid Build Coastguard Worker @property(nonatomic, assign) int streamId DEPRECATED_ATTRIBUTE; 43*d9f75844SAndroid Build Coastguard Worker 44*d9f75844SAndroid Build Coastguard Worker /** The id of the data channel. */ 45*d9f75844SAndroid Build Coastguard Worker @property(nonatomic, assign) int channelId; 46*d9f75844SAndroid Build Coastguard Worker 47*d9f75844SAndroid Build Coastguard Worker /** Set by the application and opaque to the WebRTC implementation. */ 48*d9f75844SAndroid Build Coastguard Worker @property(nonatomic) NSString* protocol; 49*d9f75844SAndroid Build Coastguard Worker 50*d9f75844SAndroid Build Coastguard Worker @end 51*d9f75844SAndroid Build Coastguard Worker 52*d9f75844SAndroid Build Coastguard Worker NS_ASSUME_NONNULL_END 53