Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2441)

Side by Side Diff: webrtc/p2p/base/transport.h

Issue 1940493002: Add Stats to Stun ping. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« webrtc/api/statstypes.cc ('K') | « webrtc/p2p/base/port_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 : best_connection(false), 88 : best_connection(false),
89 writable(false), 89 writable(false),
90 receiving(false), 90 receiving(false),
91 timeout(false), 91 timeout(false),
92 new_connection(false), 92 new_connection(false),
93 rtt(0), 93 rtt(0),
94 sent_total_bytes(0), 94 sent_total_bytes(0),
95 sent_bytes_second(0), 95 sent_bytes_second(0),
96 sent_discarded_packets(0), 96 sent_discarded_packets(0),
97 sent_total_packets(0), 97 sent_total_packets(0),
98 sent_ping_requests(0),
98 recv_total_bytes(0), 99 recv_total_bytes(0),
99 recv_bytes_second(0), 100 recv_bytes_second(0),
101 recv_ping_responses(0),
100 key(NULL) {} 102 key(NULL) {}
101 103
102 bool best_connection; // Is this the best connection we have? 104 bool best_connection; // Is this the best connection we have?
103 bool writable; // Has this connection received a STUN response? 105 bool writable; // Has this connection received a STUN response?
104 bool receiving; // Has this connection received anything? 106 bool receiving; // Has this connection received anything?
105 bool timeout; // Has this connection timed out? 107 bool timeout; // Has this connection timed out?
106 bool new_connection; // Is this a newly created connection? 108 bool new_connection; // Is this a newly created connection?
107 size_t rtt; // The STUN RTT for this connection. 109 size_t rtt; // The STUN RTT for this connection.
108 size_t sent_total_bytes; // Total bytes sent on this connection. 110 size_t sent_total_bytes; // Total bytes sent on this connection.
109 size_t sent_bytes_second; // Bps over the last measurement interval. 111 size_t sent_bytes_second; // Bps over the last measurement interval.
110 size_t sent_discarded_packets; // Number of outgoing packets discarded due to 112 size_t sent_discarded_packets; // Number of outgoing packets discarded due to
111 // socket errors. 113 // socket errors.
112 size_t sent_total_packets; // Number of total outgoing packets attempted for 114 size_t sent_total_packets; // Number of total outgoing packets attempted for
113 // sending. 115 // sending.
116 size_t sent_ping_requests; // Number of STUN ping request sent.
pthatcher1 2016/05/05 23:30:57 request => requests
114 117
115 size_t recv_total_bytes; // Total bytes received on this connection. 118 size_t recv_total_bytes; // Total bytes received on this connection.
116 size_t recv_bytes_second; // Bps over the last measurement interval. 119 size_t recv_bytes_second; // Bps over the last measurement interval.
120 size_t recv_ping_responses; // Number of STUN ping response received.
pthatcher1 2016/05/05 23:30:57 response => responses
117 Candidate local_candidate; // The local candidate for this connection. 121 Candidate local_candidate; // The local candidate for this connection.
118 Candidate remote_candidate; // The remote candidate for this connection. 122 Candidate remote_candidate; // The remote candidate for this connection.
119 void* key; // A static value that identifies this conn. 123 void* key; // A static value that identifies this conn.
120 }; 124 };
121 125
122 // Information about all the connections of a channel. 126 // Information about all the connections of a channel.
123 typedef std::vector<ConnectionInfo> ConnectionInfos; 127 typedef std::vector<ConnectionInfo> ConnectionInfos;
124 128
125 // Information about a specific channel 129 // Information about a specific channel
126 struct TransportChannelStats { 130 struct TransportChannelStats {
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 347
344 ChannelMap channels_; 348 ChannelMap channels_;
345 349
346 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); 350 RTC_DISALLOW_COPY_AND_ASSIGN(Transport);
347 }; 351 };
348 352
349 353
350 } // namespace cricket 354 } // namespace cricket
351 355
352 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ 356 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_
OLDNEW
« webrtc/api/statstypes.cc ('K') | « webrtc/p2p/base/port_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698