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