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