OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #import <Foundation/Foundation.h> | 11 #import <Foundation/Foundation.h> |
12 | 12 |
13 #import <WebRTC/RTCMacros.h> | 13 #import <WebRTC/RTCMacros.h> |
14 | 14 |
15 @class RTCIceServer; | 15 @class RTCIceServer; |
16 @class RTCIntervalRange; | |
17 | 16 |
18 /** | 17 /** |
19 * Represents the ice transport policy. This exposes the same states in C++, | 18 * Represents the ice transport policy. This exposes the same states in C++, |
20 * which include one more state than what exists in the W3C spec. | 19 * which include one more state than what exists in the W3C spec. |
21 */ | 20 */ |
22 typedef NS_ENUM(NSInteger, RTCIceTransportPolicy) { | 21 typedef NS_ENUM(NSInteger, RTCIceTransportPolicy) { |
23 RTCIceTransportPolicyNone, | 22 RTCIceTransportPolicyNone, |
24 RTCIceTransportPolicyRelay, | 23 RTCIceTransportPolicyRelay, |
25 RTCIceTransportPolicyNoHost, | 24 RTCIceTransportPolicyNoHost, |
26 RTCIceTransportPolicyAll | 25 RTCIceTransportPolicyAll |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 /** If set to YES, this means the ICE transport should presume TURN-to-TURN | 102 /** If set to YES, this means the ICE transport should presume TURN-to-TURN |
104 * candidate pairs will succeed, even before a binding response is received. | 103 * candidate pairs will succeed, even before a binding response is received. |
105 */ | 104 */ |
106 @property(nonatomic, assign) BOOL shouldPresumeWritableWhenFullyRelayed; | 105 @property(nonatomic, assign) BOOL shouldPresumeWritableWhenFullyRelayed; |
107 | 106 |
108 /** If set to non-nil, controls the minimal interval between consecutive ICE | 107 /** If set to non-nil, controls the minimal interval between consecutive ICE |
109 * check packets. | 108 * check packets. |
110 */ | 109 */ |
111 @property(nonatomic, copy, nullable) NSNumber *iceCheckMinInterval; | 110 @property(nonatomic, copy, nullable) NSNumber *iceCheckMinInterval; |
112 | 111 |
113 /** ICE Periodic Regathering | |
114 * If set, WebRTC will periodically create and propose candidates without | |
115 * starting a new ICE generation. The regathering happens continuously with | |
116 * interval specified in milliseconds by the uniform distribution [a, b]. | |
117 */ | |
118 @property(nonatomic, strong, nullable) RTCIntervalRange *iceRegatherIntervalRang
e; | |
119 | |
120 - (instancetype)init; | 112 - (instancetype)init; |
121 | 113 |
122 @end | 114 @end |
123 | 115 |
124 NS_ASSUME_NONNULL_END | 116 NS_ASSUME_NONNULL_END |
OLD | NEW |