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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 const rtc::IPAddress& ip, | 135 const rtc::IPAddress& ip, |
136 uint16_t min_port, | 136 uint16_t min_port, |
137 uint16_t max_port, | 137 uint16_t max_port, |
138 const std::string& username_fragment, | 138 const std::string& username_fragment, |
139 const std::string& password); | 139 const std::string& password); |
140 virtual ~Port(); | 140 virtual ~Port(); |
141 | 141 |
142 virtual const std::string& Type() const { return type_; } | 142 virtual const std::string& Type() const { return type_; } |
143 virtual rtc::Network* Network() const { return network_; } | 143 virtual rtc::Network* Network() const { return network_; } |
144 | 144 |
| 145 virtual void FailAndDestroyConnections(); |
| 146 |
145 // Methods to set/get ICE role and tiebreaker values. | 147 // Methods to set/get ICE role and tiebreaker values. |
146 IceRole GetIceRole() const { return ice_role_; } | 148 IceRole GetIceRole() const { return ice_role_; } |
147 void SetIceRole(IceRole role) { ice_role_ = role; } | 149 void SetIceRole(IceRole role) { ice_role_ = role; } |
148 | 150 |
149 void SetIceTiebreaker(uint64_t tiebreaker) { tiebreaker_ = tiebreaker; } | 151 void SetIceTiebreaker(uint64_t tiebreaker) { tiebreaker_ = tiebreaker; } |
150 uint64_t IceTiebreaker() const { return tiebreaker_; } | 152 uint64_t IceTiebreaker() const { return tiebreaker_; } |
151 | 153 |
152 virtual bool SharedSocket() const { return shared_socket_; } | 154 virtual bool SharedSocket() const { return shared_socket_; } |
153 void ResetSharedSocket() { shared_socket_ = false; } | 155 void ResetSharedSocket() { shared_socket_ = false; } |
154 | 156 |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 const rtc::PacketOptions& options) override; | 667 const rtc::PacketOptions& options) override; |
666 int GetError() override { return error_; } | 668 int GetError() override { return error_; } |
667 | 669 |
668 private: | 670 private: |
669 int error_ = 0; | 671 int error_ = 0; |
670 }; | 672 }; |
671 | 673 |
672 } // namespace cricket | 674 } // namespace cricket |
673 | 675 |
674 #endif // WEBRTC_P2P_BASE_PORT_H_ | 676 #endif // WEBRTC_P2P_BASE_PORT_H_ |
OLD | NEW |