xref: /aosp_15_r20/external/webrtc/p2p/base/connection_info.cc (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1*d9f75844SAndroid Build Coastguard Worker /*
2*d9f75844SAndroid Build Coastguard Worker  *  Copyright 2019 The WebRTC Project Authors. All rights reserved.
3*d9f75844SAndroid Build Coastguard Worker  *
4*d9f75844SAndroid Build Coastguard Worker  *  Use of this source code is governed by a BSD-style license
5*d9f75844SAndroid Build Coastguard Worker  *  that can be found in the LICENSE file in the root of the source
6*d9f75844SAndroid Build Coastguard Worker  *  tree. An additional intellectual property rights grant can be found
7*d9f75844SAndroid Build Coastguard Worker  *  in the file PATENTS.  All contributing project authors may
8*d9f75844SAndroid Build Coastguard Worker  *  be found in the AUTHORS file in the root of the source tree.
9*d9f75844SAndroid Build Coastguard Worker  */
10*d9f75844SAndroid Build Coastguard Worker 
11*d9f75844SAndroid Build Coastguard Worker #include "p2p/base/connection_info.h"
12*d9f75844SAndroid Build Coastguard Worker 
13*d9f75844SAndroid Build Coastguard Worker namespace cricket {
14*d9f75844SAndroid Build Coastguard Worker 
ConnectionInfo()15*d9f75844SAndroid Build Coastguard Worker ConnectionInfo::ConnectionInfo()
16*d9f75844SAndroid Build Coastguard Worker     : best_connection(false),
17*d9f75844SAndroid Build Coastguard Worker       writable(false),
18*d9f75844SAndroid Build Coastguard Worker       receiving(false),
19*d9f75844SAndroid Build Coastguard Worker       timeout(false),
20*d9f75844SAndroid Build Coastguard Worker       rtt(0),
21*d9f75844SAndroid Build Coastguard Worker       sent_discarded_bytes(0),
22*d9f75844SAndroid Build Coastguard Worker       sent_total_bytes(0),
23*d9f75844SAndroid Build Coastguard Worker       sent_bytes_second(0),
24*d9f75844SAndroid Build Coastguard Worker       sent_discarded_packets(0),
25*d9f75844SAndroid Build Coastguard Worker       sent_total_packets(0),
26*d9f75844SAndroid Build Coastguard Worker       sent_ping_requests_total(0),
27*d9f75844SAndroid Build Coastguard Worker       sent_ping_requests_before_first_response(0),
28*d9f75844SAndroid Build Coastguard Worker       sent_ping_responses(0),
29*d9f75844SAndroid Build Coastguard Worker       recv_total_bytes(0),
30*d9f75844SAndroid Build Coastguard Worker       recv_bytes_second(0),
31*d9f75844SAndroid Build Coastguard Worker       packets_received(0),
32*d9f75844SAndroid Build Coastguard Worker       recv_ping_requests(0),
33*d9f75844SAndroid Build Coastguard Worker       recv_ping_responses(0),
34*d9f75844SAndroid Build Coastguard Worker       key(nullptr),
35*d9f75844SAndroid Build Coastguard Worker       state(IceCandidatePairState::WAITING),
36*d9f75844SAndroid Build Coastguard Worker       priority(0),
37*d9f75844SAndroid Build Coastguard Worker       nominated(false),
38*d9f75844SAndroid Build Coastguard Worker       total_round_trip_time_ms(0) {}
39*d9f75844SAndroid Build Coastguard Worker 
40*d9f75844SAndroid Build Coastguard Worker ConnectionInfo::ConnectionInfo(const ConnectionInfo&) = default;
41*d9f75844SAndroid Build Coastguard Worker 
42*d9f75844SAndroid Build Coastguard Worker ConnectionInfo::~ConnectionInfo() = default;
43*d9f75844SAndroid Build Coastguard Worker 
44*d9f75844SAndroid Build Coastguard Worker }  // namespace cricket
45