| 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 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1381 session_->socket_factory(), | 1381 session_->socket_factory(), |
| 1382 network_, ip_, | 1382 network_, ip_, |
| 1383 session_->allocator()->min_port(), | 1383 session_->allocator()->min_port(), |
| 1384 session_->allocator()->max_port(), | 1384 session_->allocator()->max_port(), |
| 1385 session_->username(), | 1385 session_->username(), |
| 1386 session_->password(), | 1386 session_->password(), |
| 1387 *relay_port, config.credentials, config.priority, | 1387 *relay_port, config.credentials, config.priority, |
| 1388 session_->allocator()->origin()); | 1388 session_->allocator()->origin()); |
| 1389 } | 1389 } |
| 1390 ASSERT(port != NULL); | 1390 ASSERT(port != NULL); |
| 1391 port->SetTlsCertPolicy(config.tls_cert_policy); |
| 1391 session_->AddAllocatedPort(port, this, true); | 1392 session_->AddAllocatedPort(port, this, true); |
| 1392 } | 1393 } |
| 1393 } | 1394 } |
| 1394 | 1395 |
| 1395 void AllocationSequence::OnReadPacket( | 1396 void AllocationSequence::OnReadPacket( |
| 1396 rtc::AsyncPacketSocket* socket, const char* data, size_t size, | 1397 rtc::AsyncPacketSocket* socket, const char* data, size_t size, |
| 1397 const rtc::SocketAddress& remote_addr, | 1398 const rtc::SocketAddress& remote_addr, |
| 1398 const rtc::PacketTime& packet_time) { | 1399 const rtc::PacketTime& packet_time) { |
| 1399 ASSERT(socket == udp_socket_.get()); | 1400 ASSERT(socket == udp_socket_.get()); |
| 1400 | 1401 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1511 ServerAddresses servers; | 1512 ServerAddresses servers; |
| 1512 for (size_t i = 0; i < relays.size(); ++i) { | 1513 for (size_t i = 0; i < relays.size(); ++i) { |
| 1513 if (relays[i].type == turn_type && SupportsProtocol(relays[i], type)) { | 1514 if (relays[i].type == turn_type && SupportsProtocol(relays[i], type)) { |
| 1514 servers.insert(relays[i].ports.front().address); | 1515 servers.insert(relays[i].ports.front().address); |
| 1515 } | 1516 } |
| 1516 } | 1517 } |
| 1517 return servers; | 1518 return servers; |
| 1518 } | 1519 } |
| 1519 | 1520 |
| 1520 } // namespace cricket | 1521 } // namespace cricket |
| OLD | NEW |