| OLD | NEW |
| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 // Time interval in milliseconds to ping a backup connection when the ICE | 158 // Time interval in milliseconds to ping a backup connection when the ICE |
| 159 // channel is strongly connected. | 159 // channel is strongly connected. |
| 160 int backup_connection_ping_interval = -1; | 160 int backup_connection_ping_interval = -1; |
| 161 // If true, the most recent port allocator session will keep on running. | 161 // If true, the most recent port allocator session will keep on running. |
| 162 bool gather_continually = false; | 162 bool gather_continually = false; |
| 163 | 163 |
| 164 // Whether we should prioritize Relay/Relay candidate when nothing | 164 // Whether we should prioritize Relay/Relay candidate when nothing |
| 165 // is writable yet. | 165 // is writable yet. |
| 166 bool prioritize_most_likely_candidate_pairs = false; | 166 bool prioritize_most_likely_candidate_pairs = false; |
| 167 | 167 |
| 168 // If the current best connection is both writable and receiving, | 168 // Writable connections are pinged at a slower rate once stablized. |
| 169 // then we will also try hard to make sure it is pinged at this rate | 169 int stable_writable_connection_ping_interval = -1; |
| 170 // (Default value is a little less than 2 * STRONG_PING_INTERVAL). | |
| 171 int max_strong_interval = -1; | |
| 172 | 170 |
| 173 IceConfig() {} | 171 IceConfig() {} |
| 174 IceConfig(int receiving_timeout_ms, | 172 IceConfig(int receiving_timeout_ms, |
| 175 int backup_connection_ping_interval, | 173 int backup_connection_ping_interval, |
| 176 bool gather_continually, | 174 bool gather_continually, |
| 177 bool prioritize_most_likely_candidate_pairs, | 175 bool prioritize_most_likely_candidate_pairs, |
| 178 int max_strong_interval_ms) | 176 int stable_writable_connection_ping_interval_ms) |
| 179 : receiving_timeout(receiving_timeout_ms), | 177 : receiving_timeout(receiving_timeout_ms), |
| 180 backup_connection_ping_interval(backup_connection_ping_interval), | 178 backup_connection_ping_interval(backup_connection_ping_interval), |
| 181 gather_continually(gather_continually), | 179 gather_continually(gather_continually), |
| 182 prioritize_most_likely_candidate_pairs( | 180 prioritize_most_likely_candidate_pairs( |
| 183 prioritize_most_likely_candidate_pairs), | 181 prioritize_most_likely_candidate_pairs), |
| 184 max_strong_interval(max_strong_interval_ms) {} | 182 stable_writable_connection_ping_interval( |
| 183 stable_writable_connection_ping_interval_ms) {} |
| 185 }; | 184 }; |
| 186 | 185 |
| 187 bool BadTransportDescription(const std::string& desc, std::string* err_desc); | 186 bool BadTransportDescription(const std::string& desc, std::string* err_desc); |
| 188 | 187 |
| 189 bool IceCredentialsChanged(const std::string& old_ufrag, | 188 bool IceCredentialsChanged(const std::string& old_ufrag, |
| 190 const std::string& old_pwd, | 189 const std::string& old_pwd, |
| 191 const std::string& new_ufrag, | 190 const std::string& new_ufrag, |
| 192 const std::string& new_pwd); | 191 const std::string& new_pwd); |
| 193 | 192 |
| 194 class Transport : public sigslot::has_slots<> { | 193 class Transport : public sigslot::has_slots<> { |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 | 367 |
| 369 ChannelMap channels_; | 368 ChannelMap channels_; |
| 370 | 369 |
| 371 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); | 370 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); |
| 372 }; | 371 }; |
| 373 | 372 |
| 374 | 373 |
| 375 } // namespace cricket | 374 } // namespace cricket |
| 376 | 375 |
| 377 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ | 376 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ |
| OLD | NEW |