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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 nominated(false), |
| 65 total_round_trip_time_ms(0) {} |
65 | 66 |
66 bool BadTransportDescription(const std::string& desc, std::string* err_desc) { | 67 bool BadTransportDescription(const std::string& desc, std::string* err_desc) { |
67 if (err_desc) { | 68 if (err_desc) { |
68 *err_desc = desc; | 69 *err_desc = desc; |
69 } | 70 } |
70 LOG(LS_ERROR) << desc; | 71 LOG(LS_ERROR) << desc; |
71 return false; | 72 return false; |
72 } | 73 } |
73 | 74 |
74 bool IceCredentialsChanged(const std::string& old_ufrag, | 75 bool IceCredentialsChanged(const std::string& old_ufrag, |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 } | 485 } |
485 | 486 |
486 // If local is passive, local will act as server. | 487 // If local is passive, local will act as server. |
487 } | 488 } |
488 | 489 |
489 *ssl_role = is_remote_server ? rtc::SSL_CLIENT : rtc::SSL_SERVER; | 490 *ssl_role = is_remote_server ? rtc::SSL_CLIENT : rtc::SSL_SERVER; |
490 return true; | 491 return true; |
491 } | 492 } |
492 | 493 |
493 } // namespace cricket | 494 } // namespace cricket |
OLD | NEW |