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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 | 585 |
586 IceMode remote_ice_mode() const { return remote_ice_mode_; } | 586 IceMode remote_ice_mode() const { return remote_ice_mode_; } |
587 | 587 |
588 uint32_t ComputeNetworkCost() const; | 588 uint32_t ComputeNetworkCost() const; |
589 | 589 |
590 // Update the ICE password and/or generation of the remote candidate if a | 590 // Update the ICE password and/or generation of the remote candidate if a |
591 // ufrag in |remote_ice_parameters| matches the candidate's ufrag, and the | 591 // ufrag in |remote_ice_parameters| matches the candidate's ufrag, and the |
592 // candidate's password and/or ufrag has not been set. | 592 // candidate's password and/or ufrag has not been set. |
593 // |remote_ice_parameters| should be a list of known ICE parameters ordered | 593 // |remote_ice_parameters| should be a list of known ICE parameters ordered |
594 // by generation. | 594 // by generation. |
595 void MaybeSetRemoteIceCredentialsAndGeneration(const std::string& ice_ufrag, | 595 void MaybeSetRemoteIceParametersAndGeneration(const IceParameters& params, |
596 const std::string& ice_pwd, | 596 int generation); |
597 int generation); | |
598 | 597 |
599 // If |remote_candidate_| is peer reflexive and is equivalent to | 598 // If |remote_candidate_| is peer reflexive and is equivalent to |
600 // |new_candidate| except the type, update |remote_candidate_| to | 599 // |new_candidate| except the type, update |remote_candidate_| to |
601 // |new_candidate|. | 600 // |new_candidate|. |
602 void MaybeUpdatePeerReflexiveCandidate(const Candidate& new_candidate); | 601 void MaybeUpdatePeerReflexiveCandidate(const Candidate& new_candidate); |
603 | 602 |
604 // Returns the last received time of any data, stun request, or stun | 603 // Returns the last received time of any data, stun request, or stun |
605 // response in milliseconds | 604 // response in milliseconds |
606 int64_t last_received() const; | 605 int64_t last_received() const; |
607 // Returns the last time when the connection changed its receiving state. | 606 // Returns the last time when the connection changed its receiving state. |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 const rtc::PacketOptions& options) override; | 710 const rtc::PacketOptions& options) override; |
712 int GetError() override { return error_; } | 711 int GetError() override { return error_; } |
713 | 712 |
714 private: | 713 private: |
715 int error_ = 0; | 714 int error_ = 0; |
716 }; | 715 }; |
717 | 716 |
718 } // namespace cricket | 717 } // namespace cricket |
719 | 718 |
720 #endif // WEBRTC_P2P_BASE_PORT_H_ | 719 #endif // WEBRTC_P2P_BASE_PORT_H_ |
OLD | NEW |