| 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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 void Construct(); | 350 void Construct(); |
| 351 // Called when one of our connections deletes itself. | 351 // Called when one of our connections deletes itself. |
| 352 void OnConnectionDestroyed(Connection* conn); | 352 void OnConnectionDestroyed(Connection* conn); |
| 353 | 353 |
| 354 // Whether this port is dead, and hence, should be destroyed on the controlled | 354 // Whether this port is dead, and hence, should be destroyed on the controlled |
| 355 // side. | 355 // side. |
| 356 bool dead() const { | 356 bool dead() const { |
| 357 return ice_role_ == ICEROLE_CONTROLLED && connections_.empty(); | 357 return ice_role_ == ICEROLE_CONTROLLED && connections_.empty(); |
| 358 } | 358 } |
| 359 | 359 |
| 360 void OnNetworkDown(const rtc::Network* network); |
| 361 |
| 360 rtc::Thread* thread_; | 362 rtc::Thread* thread_; |
| 361 rtc::PacketSocketFactory* factory_; | 363 rtc::PacketSocketFactory* factory_; |
| 362 std::string type_; | 364 std::string type_; |
| 363 bool send_retransmit_count_attribute_; | 365 bool send_retransmit_count_attribute_; |
| 364 rtc::Network* network_; | 366 rtc::Network* network_; |
| 365 rtc::IPAddress ip_; | 367 rtc::IPAddress ip_; |
| 366 uint16_t min_port_; | 368 uint16_t min_port_; |
| 367 uint16_t max_port_; | 369 uint16_t max_port_; |
| 368 std::string content_name_; | 370 std::string content_name_; |
| 369 int component_; | 371 int component_; |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 const rtc::PacketOptions& options) override; | 655 const rtc::PacketOptions& options) override; |
| 654 int GetError() override { return error_; } | 656 int GetError() override { return error_; } |
| 655 | 657 |
| 656 private: | 658 private: |
| 657 int error_ = 0; | 659 int error_ = 0; |
| 658 }; | 660 }; |
| 659 | 661 |
| 660 } // namespace cricket | 662 } // namespace cricket |
| 661 | 663 |
| 662 #endif // WEBRTC_P2P_BASE_PORT_H_ | 664 #endif // WEBRTC_P2P_BASE_PORT_H_ |
| OLD | NEW |