OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2009 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 4183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4194 CreateBasicPortAllocator(&network_manager_, ServerAddresses(), | 4194 CreateBasicPortAllocator(&network_manager_, ServerAddresses(), |
4195 kTurnUdpIntAddr, rtc::SocketAddress())); | 4195 kTurnUdpIntAddr, rtc::SocketAddress())); |
4196 allocator_->set_flags(allocator_->flags() | PORTALLOCATOR_DISABLE_STUN | | 4196 allocator_->set_flags(allocator_->flags() | PORTALLOCATOR_DISABLE_STUN | |
4197 PORTALLOCATOR_DISABLE_TCP); | 4197 PORTALLOCATOR_DISABLE_TCP); |
4198 allocator_->set_step_delay(kMinimumStepDelay); | 4198 allocator_->set_step_delay(kMinimumStepDelay); |
4199 } | 4199 } |
4200 | 4200 |
4201 P2PTransportChannel& StartTransportChannel( | 4201 P2PTransportChannel& StartTransportChannel( |
4202 bool prioritize_most_likely_to_work, | 4202 bool prioritize_most_likely_to_work, |
4203 int stable_writable_connection_ping_interval) { | 4203 int stable_writable_connection_ping_interval) { |
4204 channel_.reset(new P2PTransportChannel("checks", 1, nullptr, allocator())); | 4204 channel_.reset(new P2PTransportChannel("checks", 1, allocator())); |
4205 IceConfig config = channel_->config(); | 4205 IceConfig config = channel_->config(); |
4206 config.prioritize_most_likely_candidate_pairs = | 4206 config.prioritize_most_likely_candidate_pairs = |
4207 prioritize_most_likely_to_work; | 4207 prioritize_most_likely_to_work; |
4208 config.stable_writable_connection_ping_interval = | 4208 config.stable_writable_connection_ping_interval = |
4209 stable_writable_connection_ping_interval; | 4209 stable_writable_connection_ping_interval; |
4210 channel_->SetIceConfig(config); | 4210 channel_->SetIceConfig(config); |
4211 PrepareChannel(channel_.get()); | 4211 PrepareChannel(channel_.get()); |
4212 channel_->MaybeStartGathering(); | 4212 channel_->MaybeStartGathering(); |
4213 return *channel_.get(); | 4213 return *channel_.get(); |
4214 } | 4214 } |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4385 | 4385 |
4386 // TCP Relay/Relay is the next. | 4386 // TCP Relay/Relay is the next. |
4387 VerifyNextPingableConnection(RELAY_PORT_TYPE, RELAY_PORT_TYPE, | 4387 VerifyNextPingableConnection(RELAY_PORT_TYPE, RELAY_PORT_TYPE, |
4388 TCP_PROTOCOL_NAME); | 4388 TCP_PROTOCOL_NAME); |
4389 | 4389 |
4390 // Finally, Local/Relay will be pinged. | 4390 // Finally, Local/Relay will be pinged. |
4391 VerifyNextPingableConnection(LOCAL_PORT_TYPE, RELAY_PORT_TYPE); | 4391 VerifyNextPingableConnection(LOCAL_PORT_TYPE, RELAY_PORT_TYPE); |
4392 } | 4392 } |
4393 | 4393 |
4394 } // namespace cricket { | 4394 } // namespace cricket { |
OLD | NEW |