| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 // When multiple networks exist, do not gather candidates on the ones with | 67 // When multiple networks exist, do not gather candidates on the ones with |
| 68 // high cost. So if both Wi-Fi and cellular networks exist, gather only on the | 68 // high cost. So if both Wi-Fi and cellular networks exist, gather only on the |
| 69 // Wi-Fi network. If a network type is "unknown", it has a cost lower than | 69 // Wi-Fi network. If a network type is "unknown", it has a cost lower than |
| 70 // cellular but higher than Wi-Fi/Ethernet. So if an unknown network exists, | 70 // cellular but higher than Wi-Fi/Ethernet. So if an unknown network exists, |
| 71 // cellular networks will not be used to gather candidates and if a Wi-Fi | 71 // cellular networks will not be used to gather candidates and if a Wi-Fi |
| 72 // network is present, "unknown" networks will not be usd to gather | 72 // network is present, "unknown" networks will not be usd to gather |
| 73 // candidates. Doing so ensures that even if a cellular network type was not | 73 // candidates. Doing so ensures that even if a cellular network type was not |
| 74 // detected initially, it would not be used if a Wi-Fi network is present. | 74 // detected initially, it would not be used if a Wi-Fi network is present. |
| 75 PORTALLOCATOR_DISABLE_COSTLY_NETWORKS = 0x2000, | 75 PORTALLOCATOR_DISABLE_COSTLY_NETWORKS = 0x2000, |
| 76 |
| 77 // When specified, do not collect IPv6 ICE candidates on Wi-Fi. |
| 78 PORTALLOCATOR_ENABLE_IPV6_ON_WIFI = 0x4000, |
| 76 }; | 79 }; |
| 77 | 80 |
| 78 // Defines various reasons that have caused ICE regathering. | 81 // Defines various reasons that have caused ICE regathering. |
| 79 enum class IceRegatheringReason { NETWORK_CHANGE, NETWORK_FAILURE, MAX_VALUE }; | 82 enum class IceRegatheringReason { NETWORK_CHANGE, NETWORK_FAILURE, MAX_VALUE }; |
| 80 | 83 |
| 81 const uint32_t kDefaultPortAllocatorFlags = 0; | 84 const uint32_t kDefaultPortAllocatorFlags = 0; |
| 82 | 85 |
| 83 const uint32_t kDefaultStepDelay = 1000; // 1 sec step delay. | 86 const uint32_t kDefaultStepDelay = 1000; // 1 sec step delay. |
| 84 // As per RFC 5245 Appendix B.1, STUN transactions need to be paced at certain | 87 // As per RFC 5245 Appendix B.1, STUN transactions need to be paced at certain |
| 85 // internal. Less than 20ms is not acceptable. We choose 50ms as our default. | 88 // internal. Less than 20ms is not acceptable. We choose 50ms as our default. |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 int candidate_pool_size_ = 0; // Last value passed into SetConfiguration. | 433 int candidate_pool_size_ = 0; // Last value passed into SetConfiguration. |
| 431 std::deque<std::unique_ptr<PortAllocatorSession>> pooled_sessions_; | 434 std::deque<std::unique_ptr<PortAllocatorSession>> pooled_sessions_; |
| 432 bool prune_turn_ports_ = false; | 435 bool prune_turn_ports_ = false; |
| 433 | 436 |
| 434 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; | 437 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; |
| 435 }; | 438 }; |
| 436 | 439 |
| 437 } // namespace cricket | 440 } // namespace cricket |
| 438 | 441 |
| 439 #endif // WEBRTC_P2P_BASE_PORTALLOCATOR_H_ | 442 #endif // WEBRTC_P2P_BASE_PORTALLOCATOR_H_ |
| OLD | NEW |