| 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 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 pruned_(false), | 783 pruned_(false), |
| 784 use_candidate_attr_(false), | 784 use_candidate_attr_(false), |
| 785 nominated_(false), | 785 nominated_(false), |
| 786 remote_ice_mode_(ICEMODE_FULL), | 786 remote_ice_mode_(ICEMODE_FULL), |
| 787 requests_(port->thread()), | 787 requests_(port->thread()), |
| 788 rtt_(DEFAULT_RTT), | 788 rtt_(DEFAULT_RTT), |
| 789 last_ping_sent_(0), | 789 last_ping_sent_(0), |
| 790 last_ping_received_(0), | 790 last_ping_received_(0), |
| 791 last_data_received_(0), | 791 last_data_received_(0), |
| 792 last_ping_response_received_(0), | 792 last_ping_response_received_(0), |
| 793 recv_rate_tracker_(100u, 10u), | 793 recv_rate_tracker_(100, 10u), |
| 794 send_rate_tracker_(100u, 10u), | 794 send_rate_tracker_(100, 10u), |
| 795 sent_packets_discarded_(0), | 795 sent_packets_discarded_(0), |
| 796 sent_packets_total_(0), | 796 sent_packets_total_(0), |
| 797 reported_(false), | 797 reported_(false), |
| 798 state_(STATE_WAITING), | 798 state_(STATE_WAITING), |
| 799 receiving_timeout_(WEAK_CONNECTION_RECEIVE_TIMEOUT), | 799 receiving_timeout_(WEAK_CONNECTION_RECEIVE_TIMEOUT), |
| 800 time_created_ms_(rtc::Time64()) { | 800 time_created_ms_(rtc::Time64()) { |
| 801 // All of our connections start in WAITING state. | 801 // All of our connections start in WAITING state. |
| 802 // TODO(mallinath) - Start connections from STATE_FROZEN. | 802 // TODO(mallinath) - Start connections from STATE_FROZEN. |
| 803 // Wire up to send stun packets | 803 // Wire up to send stun packets |
| 804 requests_.SignalSendPacket.connect(this, &Connection::OnSendStunPacket); | 804 requests_.SignalSendPacket.connect(this, &Connection::OnSendStunPacket); |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1450 ASSERT(sent < 0); | 1450 ASSERT(sent < 0); |
| 1451 error_ = port_->GetError(); | 1451 error_ = port_->GetError(); |
| 1452 sent_packets_discarded_++; | 1452 sent_packets_discarded_++; |
| 1453 } else { | 1453 } else { |
| 1454 send_rate_tracker_.AddSamples(sent); | 1454 send_rate_tracker_.AddSamples(sent); |
| 1455 } | 1455 } |
| 1456 return sent; | 1456 return sent; |
| 1457 } | 1457 } |
| 1458 | 1458 |
| 1459 } // namespace cricket | 1459 } // namespace cricket |
| OLD | NEW |