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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 } | 242 } |
243 | 243 |
244 private: | 244 private: |
245 std::string ToStringInternal(bool sensitive) const { | 245 std::string ToStringInternal(bool sensitive) const { |
246 std::ostringstream ost; | 246 std::ostringstream ost; |
247 std::string address = sensitive ? address_.ToSensitiveString() : | 247 std::string address = sensitive ? address_.ToSensitiveString() : |
248 address_.ToString(); | 248 address_.ToString(); |
249 ost << "Cand[" << transport_name_ << ":" << foundation_ << ":" << component_ | 249 ost << "Cand[" << transport_name_ << ":" << foundation_ << ":" << component_ |
250 << ":" << protocol_ << ":" << priority_ << ":" << address << ":" | 250 << ":" << protocol_ << ":" << priority_ << ":" << address << ":" |
251 << type_ << ":" << related_address_ << ":" << username_ << ":" | 251 << type_ << ":" << related_address_ << ":" << username_ << ":" |
252 << password_ << ":" << network_id_ << ":" << network_cost_ << "]"; | 252 << password_ << ":" << network_id_ << ":" << network_cost_ << ":" |
| 253 << generation_ << "]"; |
253 return ost.str(); | 254 return ost.str(); |
254 } | 255 } |
255 | 256 |
256 std::string id_; | 257 std::string id_; |
257 int component_; | 258 int component_; |
258 std::string protocol_; | 259 std::string protocol_; |
259 std::string relay_protocol_; | 260 std::string relay_protocol_; |
260 rtc::SocketAddress address_; | 261 rtc::SocketAddress address_; |
261 uint32_t priority_; | 262 uint32_t priority_; |
262 std::string username_; | 263 std::string username_; |
(...skipping 18 matching lines...) Expand all Loading... |
281 virtual ~CandidateTranslator() {} | 282 virtual ~CandidateTranslator() {} |
282 virtual bool GetChannelNameFromComponent( | 283 virtual bool GetChannelNameFromComponent( |
283 int component, std::string* channel_name) const = 0; | 284 int component, std::string* channel_name) const = 0; |
284 virtual bool GetComponentFromChannelName( | 285 virtual bool GetComponentFromChannelName( |
285 const std::string& channel_name, int* component) const = 0; | 286 const std::string& channel_name, int* component) const = 0; |
286 }; | 287 }; |
287 | 288 |
288 } // namespace cricket | 289 } // namespace cricket |
289 | 290 |
290 #endif // WEBRTC_P2P_BASE_CANDIDATE_H_ | 291 #endif // WEBRTC_P2P_BASE_CANDIDATE_H_ |
OLD | NEW |