blob: 500b5f391660011bdd93c8cbee02242ea18f1676 [file] [log] [blame]
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/quic/quic_connection_stats.h"
using std::ostream;
namespace net {
QuicConnectionStats::QuicConnectionStats()
: bytes_sent(0),
packets_sent(0),
stream_bytes_sent(0),
bytes_received(0),
packets_received(0),
stream_bytes_received(0),
bytes_retransmitted(0),
packets_retransmitted(0),
packets_revived(0),
packets_dropped(0),
rto_count(0),
rtt(0),
estimated_bandwidth(0) {
}
QuicConnectionStats::~QuicConnectionStats() {}
ostream& operator<<(ostream& os, const QuicConnectionStats& s) {
os << "{ bytes sent: " << s.bytes_sent
<< ", packets sent:" << s.packets_sent
<< ", stream bytes sent: " << s.stream_bytes_sent
<< ", bytes received: " << s.bytes_received
<< ", packets received: " << s.packets_received
<< ", stream bytes received: " << s.stream_bytes_received
<< ", bytes retransmitted: " << s.bytes_retransmitted
<< ", packets retransmitted: " << s.packets_retransmitted
<< ", packets revived: " << s.packets_revived
<< ", packets dropped:" << s.packets_dropped
<< ", rto count: " << s.rto_count
<< ", rtt(us): " << s.rtt
<< ", estimated_bandwidth: " << s.estimated_bandwidth
<< "}\n";
return os;
}
} // namespace net