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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 void set_remote_nomination(uint32_t remote_nomination) { | 521 void set_remote_nomination(uint32_t remote_nomination) { |
522 remote_nomination_ = remote_nomination; | 522 remote_nomination_ = remote_nomination; |
523 } | 523 } |
524 // Public for unit tests. | 524 // Public for unit tests. |
525 uint32_t acked_nomination() const { return acked_nomination_; } | 525 uint32_t acked_nomination() const { return acked_nomination_; } |
526 | 526 |
527 void set_remote_ice_mode(IceMode mode) { | 527 void set_remote_ice_mode(IceMode mode) { |
528 remote_ice_mode_ = mode; | 528 remote_ice_mode_ = mode; |
529 } | 529 } |
530 | 530 |
531 void set_receiving_timeout(int64_t receiving_timeout_ms) { | 531 void set_receiving_timeout(int receiving_timeout_ms) { |
532 receiving_timeout_ = receiving_timeout_ms; | 532 receiving_timeout_ = receiving_timeout_ms; |
533 } | 533 } |
534 | 534 |
535 // Makes the connection go away. | 535 // Makes the connection go away. |
536 void Destroy(); | 536 void Destroy(); |
537 | 537 |
538 // Makes the connection go away, in a failed state. | 538 // Makes the connection go away, in a failed state. |
539 void FailAndDestroy(); | 539 void FailAndDestroy(); |
540 | 540 |
541 // Prunes the connection and sets its state to STATE_FAILED, | 541 // Prunes the connection and sets its state to STATE_FAILED, |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 const rtc::PacketOptions& options) override; | 713 const rtc::PacketOptions& options) override; |
714 int GetError() override { return error_; } | 714 int GetError() override { return error_; } |
715 | 715 |
716 private: | 716 private: |
717 int error_ = 0; | 717 int error_ = 0; |
718 }; | 718 }; |
719 | 719 |
720 } // namespace cricket | 720 } // namespace cricket |
721 | 721 |
722 #endif // WEBRTC_P2P_BASE_PORT_H_ | 722 #endif // WEBRTC_P2P_BASE_PORT_H_ |
OLD | NEW |