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

Side by Side Diff: webrtc/p2p/base/port.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/p2p/base/p2ptransportchannel_unittest.cc ('k') | webrtc/p2p/base/port.cc » ('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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // The timeout duration when a connection does not receive anything. 65 // The timeout duration when a connection does not receive anything.
66 static const int WEAK_CONNECTION_RECEIVE_TIMEOUT = 2500; // 2.5 seconds 66 static const int WEAK_CONNECTION_RECEIVE_TIMEOUT = 2500; // 2.5 seconds
67 67
68 // The length of time we wait before timing out writability on a connection. 68 // The length of time we wait before timing out writability on a connection.
69 static const int CONNECTION_WRITE_TIMEOUT = 15 * 1000; // 15 seconds 69 static const int CONNECTION_WRITE_TIMEOUT = 15 * 1000; // 15 seconds
70 70
71 // The length of time we wait before we become unwritable. 71 // The length of time we wait before we become unwritable.
72 static const int CONNECTION_WRITE_CONNECT_TIMEOUT = 5 * 1000; // 5 seconds 72 static const int CONNECTION_WRITE_CONNECT_TIMEOUT = 5 * 1000; // 5 seconds
73 73
74 // This is the length of time that we wait for a ping response to come back. 74 // This is the length of time that we wait for a ping response to come back.
75 static const int CONNECTION_RESPONSE_TIMEOUT = 5 * 1000; // 5 seconds 75 // There is no harm to keep this value high other than a small amount
76 // of increased memory. But in some networks (2G),
77 // we observe up to 60s RTTs.
78 static const int CONNECTION_RESPONSE_TIMEOUT = 60 * 1000; // 60 seconds
76 79
77 // The number of pings that must fail to respond before we become unwritable. 80 // The number of pings that must fail to respond before we become unwritable.
78 static const uint32_t CONNECTION_WRITE_CONNECT_FAILURES = 5; 81 static const uint32_t CONNECTION_WRITE_CONNECT_FAILURES = 5;
79 82
80 enum RelayType { 83 enum RelayType {
81 RELAY_GTURN, // Legacy google relay service. 84 RELAY_GTURN, // Legacy google relay service.
82 RELAY_TURN // Standard (TURN) relay service. 85 RELAY_TURN // Standard (TURN) relay service.
83 }; 86 };
84 87
85 enum IcePriorityValue { 88 enum IcePriorityValue {
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 const rtc::PacketOptions& options) override; 714 const rtc::PacketOptions& options) override;
712 int GetError() override { return error_; } 715 int GetError() override { return error_; }
713 716
714 private: 717 private:
715 int error_ = 0; 718 int error_ = 0;
716 }; 719 };
717 720
718 } // namespace cricket 721 } // namespace cricket
719 722
720 #endif // WEBRTC_P2P_BASE_PORT_H_ 723 #endif // WEBRTC_P2P_BASE_PORT_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel_unittest.cc ('k') | webrtc/p2p/base/port.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698