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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 sent_total_packets(0), | 53 sent_total_packets(0), |
54 sent_ping_requests_total(0), | 54 sent_ping_requests_total(0), |
55 sent_ping_requests_before_first_response(0), | 55 sent_ping_requests_before_first_response(0), |
56 sent_ping_responses(0), | 56 sent_ping_responses(0), |
57 recv_total_bytes(0), | 57 recv_total_bytes(0), |
58 recv_bytes_second(0), | 58 recv_bytes_second(0), |
59 recv_ping_requests(0), | 59 recv_ping_requests(0), |
60 recv_ping_responses(0), | 60 recv_ping_responses(0), |
61 key(nullptr), | 61 key(nullptr), |
62 state(IceCandidatePairState::WAITING), | 62 state(IceCandidatePairState::WAITING), |
63 priority(0) {} | 63 priority(0), |
| 64 nominated(false) {} |
64 | 65 |
65 bool BadTransportDescription(const std::string& desc, std::string* err_desc) { | 66 bool BadTransportDescription(const std::string& desc, std::string* err_desc) { |
66 if (err_desc) { | 67 if (err_desc) { |
67 *err_desc = desc; | 68 *err_desc = desc; |
68 } | 69 } |
69 LOG(LS_ERROR) << desc; | 70 LOG(LS_ERROR) << desc; |
70 return false; | 71 return false; |
71 } | 72 } |
72 | 73 |
73 bool IceCredentialsChanged(const std::string& old_ufrag, | 74 bool IceCredentialsChanged(const std::string& old_ufrag, |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 } | 484 } |
484 | 485 |
485 // If local is passive, local will act as server. | 486 // If local is passive, local will act as server. |
486 } | 487 } |
487 | 488 |
488 *ssl_role = is_remote_server ? rtc::SSL_CLIENT : rtc::SSL_SERVER; | 489 *ssl_role = is_remote_server ? rtc::SSL_CLIENT : rtc::SSL_SERVER; |
489 return true; | 490 return true; |
490 } | 491 } |
491 | 492 |
492 } // namespace cricket | 493 } // namespace cricket |
OLD | NEW |