| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_total(0), |
| 99 sent_ping_requests_before_first_response(0), |
| 100 sent_ping_responses(0), |
| 98 recv_total_bytes(0), | 101 recv_total_bytes(0), |
| 99 recv_bytes_second(0), | 102 recv_bytes_second(0), |
| 103 recv_ping_requests(0), |
| 104 recv_ping_responses(0), |
| 100 key(NULL) {} | 105 key(NULL) {} |
| 101 | 106 |
| 102 bool best_connection; // Is this the best connection we have? | 107 bool best_connection; // Is this the best connection we have? |
| 103 bool writable; // Has this connection received a STUN response? | 108 bool writable; // Has this connection received a STUN response? |
| 104 bool receiving; // Has this connection received anything? | 109 bool receiving; // Has this connection received anything? |
| 105 bool timeout; // Has this connection timed out? | 110 bool timeout; // Has this connection timed out? |
| 106 bool new_connection; // Is this a newly created connection? | 111 bool new_connection; // Is this a newly created connection? |
| 107 size_t rtt; // The STUN RTT for this connection. | 112 size_t rtt; // The STUN RTT for this connection. |
| 108 size_t sent_total_bytes; // Total bytes sent on this connection. | 113 size_t sent_total_bytes; // Total bytes sent on this connection. |
| 109 size_t sent_bytes_second; // Bps over the last measurement interval. | 114 size_t sent_bytes_second; // Bps over the last measurement interval. |
| 110 size_t sent_discarded_packets; // Number of outgoing packets discarded due to | 115 size_t sent_discarded_packets; // Number of outgoing packets discarded due to |
| 111 // socket errors. | 116 // socket errors. |
| 112 size_t sent_total_packets; // Number of total outgoing packets attempted for | 117 size_t sent_total_packets; // Number of total outgoing packets attempted for |
| 113 // sending. | 118 // sending. |
| 119 size_t sent_ping_requests_total; // Number of STUN ping request sent. |
| 120 size_t sent_ping_requests_before_first_response; // Number of STUN ping |
| 121 // sent before receiving the first response. |
| 122 size_t sent_ping_responses; // Number of STUN ping response sent. |
| 114 | 123 |
| 115 size_t recv_total_bytes; // Total bytes received on this connection. | 124 size_t recv_total_bytes; // Total bytes received on this connection. |
| 116 size_t recv_bytes_second; // Bps over the last measurement interval. | 125 size_t recv_bytes_second; // Bps over the last measurement interval. |
| 126 size_t recv_ping_requests; // Number of STUN ping request received. |
| 127 size_t recv_ping_responses; // Number of STUN ping response received. |
| 117 Candidate local_candidate; // The local candidate for this connection. | 128 Candidate local_candidate; // The local candidate for this connection. |
| 118 Candidate remote_candidate; // The remote candidate for this connection. | 129 Candidate remote_candidate; // The remote candidate for this connection. |
| 119 void* key; // A static value that identifies this conn. | 130 void* key; // A static value that identifies this conn. |
| 120 }; | 131 }; |
| 121 | 132 |
| 122 // Information about all the connections of a channel. | 133 // Information about all the connections of a channel. |
| 123 typedef std::vector<ConnectionInfo> ConnectionInfos; | 134 typedef std::vector<ConnectionInfo> ConnectionInfos; |
| 124 | 135 |
| 125 // Information about a specific channel | 136 // Information about a specific channel |
| 126 struct TransportChannelStats { | 137 struct TransportChannelStats { |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 | 368 |
| 358 ChannelMap channels_; | 369 ChannelMap channels_; |
| 359 | 370 |
| 360 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); | 371 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); |
| 361 }; | 372 }; |
| 362 | 373 |
| 363 | 374 |
| 364 } // namespace cricket | 375 } // namespace cricket |
| 365 | 376 |
| 366 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ | 377 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ |
| OLD | NEW |