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 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1027 (connection->write_state() == Connection::STATE_WRITABLE); | 1027 (connection->write_state() == Connection::STATE_WRITABLE); |
1028 info.timeout = | 1028 info.timeout = |
1029 (connection->write_state() == Connection::STATE_WRITE_TIMEOUT); | 1029 (connection->write_state() == Connection::STATE_WRITE_TIMEOUT); |
1030 info.new_connection = !connection->reported(); | 1030 info.new_connection = !connection->reported(); |
1031 connection->set_reported(true); | 1031 connection->set_reported(true); |
1032 info.rtt = connection->rtt(); | 1032 info.rtt = connection->rtt(); |
1033 info.sent_total_bytes = connection->sent_total_bytes(); | 1033 info.sent_total_bytes = connection->sent_total_bytes(); |
1034 info.sent_bytes_second = connection->sent_bytes_second(); | 1034 info.sent_bytes_second = connection->sent_bytes_second(); |
1035 info.sent_discarded_packets = connection->sent_discarded_packets(); | 1035 info.sent_discarded_packets = connection->sent_discarded_packets(); |
1036 info.sent_total_packets = connection->sent_total_packets(); | 1036 info.sent_total_packets = connection->sent_total_packets(); |
| 1037 info.sent_ping_requests_total = connection->sent_ping_requests_total(); |
| 1038 info.sent_ping_requests_before_first_response = |
| 1039 connection->sent_ping_requests_before_first_response(); |
| 1040 info.sent_ping_responses = connection->sent_ping_responses(); |
1037 info.recv_total_bytes = connection->recv_total_bytes(); | 1041 info.recv_total_bytes = connection->recv_total_bytes(); |
1038 info.recv_bytes_second = connection->recv_bytes_second(); | 1042 info.recv_bytes_second = connection->recv_bytes_second(); |
| 1043 info.recv_ping_requests = connection->recv_ping_requests(); |
| 1044 info.recv_ping_responses = connection->recv_ping_responses(); |
1039 info.local_candidate = connection->local_candidate(); | 1045 info.local_candidate = connection->local_candidate(); |
1040 info.remote_candidate = connection->remote_candidate(); | 1046 info.remote_candidate = connection->remote_candidate(); |
1041 info.key = connection; | 1047 info.key = connection; |
1042 infos->push_back(info); | 1048 infos->push_back(info); |
1043 } | 1049 } |
1044 | 1050 |
1045 return true; | 1051 return true; |
1046 } | 1052 } |
1047 | 1053 |
1048 rtc::DiffServCodePoint P2PTransportChannel::DefaultDscpValue() const { | 1054 rtc::DiffServCodePoint P2PTransportChannel::DefaultDscpValue() const { |
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1658 | 1664 |
1659 // During the initial state when nothing has been pinged yet, return the first | 1665 // During the initial state when nothing has been pinged yet, return the first |
1660 // one in the ordered |connections_|. | 1666 // one in the ordered |connections_|. |
1661 return *(std::find_if(connections_.begin(), connections_.end(), | 1667 return *(std::find_if(connections_.begin(), connections_.end(), |
1662 [conn1, conn2](Connection* conn) { | 1668 [conn1, conn2](Connection* conn) { |
1663 return conn == conn1 || conn == conn2; | 1669 return conn == conn1 || conn == conn2; |
1664 })); | 1670 })); |
1665 } | 1671 } |
1666 | 1672 |
1667 } // namespace cricket | 1673 } // namespace cricket |
OLD | NEW |