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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 void Construct(); | 356 void Construct(); |
357 // Called when one of our connections deletes itself. | 357 // Called when one of our connections deletes itself. |
358 void OnConnectionDestroyed(Connection* conn); | 358 void OnConnectionDestroyed(Connection* conn); |
359 | 359 |
360 // Whether this port is dead, and hence, should be destroyed on the controlled | 360 // Whether this port is dead, and hence, should be destroyed on the controlled |
361 // side. | 361 // side. |
362 bool dead() const { | 362 bool dead() const { |
363 return ice_role_ == ICEROLE_CONTROLLED && connections_.empty(); | 363 return ice_role_ == ICEROLE_CONTROLLED && connections_.empty(); |
364 } | 364 } |
365 | 365 |
366 void OnNetworkInactive(const rtc::Network* network); | |
367 | |
368 void OnNetworkTypeChanged(const rtc::Network* network); | 366 void OnNetworkTypeChanged(const rtc::Network* network); |
369 | 367 |
370 rtc::Thread* thread_; | 368 rtc::Thread* thread_; |
371 rtc::PacketSocketFactory* factory_; | 369 rtc::PacketSocketFactory* factory_; |
372 std::string type_; | 370 std::string type_; |
373 bool send_retransmit_count_attribute_; | 371 bool send_retransmit_count_attribute_; |
374 rtc::Network* network_; | 372 rtc::Network* network_; |
375 rtc::IPAddress ip_; | 373 rtc::IPAddress ip_; |
376 uint16_t min_port_; | 374 uint16_t min_port_; |
377 uint16_t max_port_; | 375 uint16_t max_port_; |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 const rtc::PacketOptions& options) override; | 680 const rtc::PacketOptions& options) override; |
683 int GetError() override { return error_; } | 681 int GetError() override { return error_; } |
684 | 682 |
685 private: | 683 private: |
686 int error_ = 0; | 684 int error_ = 0; |
687 }; | 685 }; |
688 | 686 |
689 } // namespace cricket | 687 } // namespace cricket |
690 | 688 |
691 #endif // WEBRTC_P2P_BASE_PORT_H_ | 689 #endif // WEBRTC_P2P_BASE_PORT_H_ |
OLD | NEW |