Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: webrtc/p2p/base/jseptransport.h

Issue 2670053002: Allow applications to limit the ICE check rate through RTCConfiguration (Closed)
Patch Set: CR feedback Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/api/peerconnectioninterface.h ('k') | webrtc/p2p/base/p2ptransportchannel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 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
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 180
181 // The time period in which we will not switch the selected connection 181 // The time period in which we will not switch the selected connection
182 // when a new connection becomes receiving but the selected connection is not 182 // when a new connection becomes receiving but the selected connection is not
183 // in case that the selected connection may become receiving soon. 183 // in case that the selected connection may become receiving soon.
184 rtc::Optional<int> receiving_switching_delay; 184 rtc::Optional<int> receiving_switching_delay;
185 185
186 // TODO(honghaiz): Change the default to regular nomination. 186 // TODO(honghaiz): Change the default to regular nomination.
187 // Default nomination mode if the remote does not support renomination. 187 // Default nomination mode if the remote does not support renomination.
188 NominationMode default_nomination_mode = NominationMode::SEMI_AGGRESSIVE; 188 NominationMode default_nomination_mode = NominationMode::SEMI_AGGRESSIVE;
189 189
190 // ICE checks (STUN pings) will not be sent at higher rate (lower interval)
191 // than this, no matter what other settings there are.
192 // Measure in milliseconds.
193 rtc::Optional<int> ice_check_min_interval;
194
190 IceConfig() {} 195 IceConfig() {}
191 IceConfig(int receiving_timeout_ms, 196 IceConfig(int receiving_timeout_ms,
192 int backup_connection_ping_interval, 197 int backup_connection_ping_interval,
193 ContinualGatheringPolicy gathering_policy, 198 ContinualGatheringPolicy gathering_policy,
194 bool prioritize_most_likely_candidate_pairs, 199 bool prioritize_most_likely_candidate_pairs,
195 int stable_writable_connection_ping_interval_ms, 200 int stable_writable_connection_ping_interval_ms,
196 bool presume_writable_when_fully_relayed, 201 bool presume_writable_when_fully_relayed,
197 int regather_on_failed_networks_interval_ms, 202 int regather_on_failed_networks_interval_ms,
198 int receiving_switching_delay_ms) 203 int receiving_switching_delay_ms)
199 : receiving_timeout(receiving_timeout_ms), 204 : receiving_timeout(receiving_timeout_ms),
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 363
359 // Candidate component => DTLS channel 364 // Candidate component => DTLS channel
360 std::map<int, DtlsTransportInternal*> channels_; 365 std::map<int, DtlsTransportInternal*> channels_;
361 366
362 RTC_DISALLOW_COPY_AND_ASSIGN(JsepTransport); 367 RTC_DISALLOW_COPY_AND_ASSIGN(JsepTransport);
363 }; 368 };
364 369
365 } // namespace cricket 370 } // namespace cricket
366 371
367 #endif // WEBRTC_P2P_BASE_JSEPTRANSPORT_H_ 372 #endif // WEBRTC_P2P_BASE_JSEPTRANSPORT_H_
OLDNEW
« no previous file with comments | « webrtc/api/peerconnectioninterface.h ('k') | webrtc/p2p/base/p2ptransportchannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698