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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
325 | 325 |
326 void AddAddress(const rtc::SocketAddress& address, | 326 void AddAddress(const rtc::SocketAddress& address, |
327 const rtc::SocketAddress& base_address, | 327 const rtc::SocketAddress& base_address, |
328 const rtc::SocketAddress& related_address, | 328 const rtc::SocketAddress& related_address, |
329 const std::string& protocol, | 329 const std::string& protocol, |
330 const std::string& relay_protocol, | 330 const std::string& relay_protocol, |
331 const std::string& tcptype, | 331 const std::string& tcptype, |
332 const std::string& type, | 332 const std::string& type, |
333 uint32_t type_preference, | 333 uint32_t type_preference, |
334 uint32_t relay_preference, | 334 uint32_t relay_preference, |
335 std::string url, | |
Taylor Brandstetter
2017/02/10 01:58:46
nit: const ref parameter
Zhi Huang
2017/02/10 06:45:50
Done.
I thought the "std::string url" is created l
| |
335 bool final); | 336 bool final); |
336 | 337 |
337 // Adds the given connection to the map keyed by the remote candidate address. | 338 // Adds the given connection to the map keyed by the remote candidate address. |
338 // If an existing connection has the same address, the existing one will be | 339 // If an existing connection has the same address, the existing one will be |
339 // replaced and destroyed. | 340 // replaced and destroyed. |
340 void AddOrReplaceConnection(Connection* conn); | 341 void AddOrReplaceConnection(Connection* conn); |
341 | 342 |
342 // Called when a packet is received from an unknown address that is not | 343 // Called when a packet is received from an unknown address that is not |
343 // currently a connection. If this is an authenticated STUN binding request, | 344 // currently a connection. If this is an authenticated STUN binding request, |
344 // then we will signal the client. | 345 // then we will signal the client. |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
714 const rtc::PacketOptions& options) override; | 715 const rtc::PacketOptions& options) override; |
715 int GetError() override { return error_; } | 716 int GetError() override { return error_; } |
716 | 717 |
717 private: | 718 private: |
718 int error_ = 0; | 719 int error_ = 0; |
719 }; | 720 }; |
720 | 721 |
721 } // namespace cricket | 722 } // namespace cricket |
722 | 723 |
723 #endif // WEBRTC_P2P_BASE_PORT_H_ | 724 #endif // WEBRTC_P2P_BASE_PORT_H_ |
OLD | NEW |