| 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 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1496 stats_.receiving = receiving_; | 1496 stats_.receiving = receiving_; |
| 1497 stats_.writable = write_state_ == STATE_WRITABLE; | 1497 stats_.writable = write_state_ == STATE_WRITABLE; |
| 1498 stats_.timeout = write_state_ == STATE_WRITE_TIMEOUT; | 1498 stats_.timeout = write_state_ == STATE_WRITE_TIMEOUT; |
| 1499 stats_.new_connection = !reported_; | 1499 stats_.new_connection = !reported_; |
| 1500 stats_.rtt = rtt_; | 1500 stats_.rtt = rtt_; |
| 1501 stats_.local_candidate = local_candidate(); | 1501 stats_.local_candidate = local_candidate(); |
| 1502 stats_.remote_candidate = remote_candidate(); | 1502 stats_.remote_candidate = remote_candidate(); |
| 1503 stats_.key = this; | 1503 stats_.key = this; |
| 1504 stats_.state = state_; | 1504 stats_.state = state_; |
| 1505 stats_.priority = priority(); | 1505 stats_.priority = priority(); |
| 1506 stats_.nominated = nominated(); |
| 1506 return stats_; | 1507 return stats_; |
| 1507 } | 1508 } |
| 1508 | 1509 |
| 1509 void Connection::MaybeUpdateLocalCandidate(ConnectionRequest* request, | 1510 void Connection::MaybeUpdateLocalCandidate(ConnectionRequest* request, |
| 1510 StunMessage* response) { | 1511 StunMessage* response) { |
| 1511 // RFC 5245 | 1512 // RFC 5245 |
| 1512 // The agent checks the mapped address from the STUN response. If the | 1513 // The agent checks the mapped address from the STUN response. If the |
| 1513 // transport address does not match any of the local candidates that the | 1514 // transport address does not match any of the local candidates that the |
| 1514 // agent knows about, the mapped address represents a new candidate -- a | 1515 // agent knows about, the mapped address represents a new candidate -- a |
| 1515 // peer reflexive candidate. | 1516 // peer reflexive candidate. |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1604 RTC_DCHECK(sent < 0); | 1605 RTC_DCHECK(sent < 0); |
| 1605 error_ = port_->GetError(); | 1606 error_ = port_->GetError(); |
| 1606 stats_.sent_discarded_packets++; | 1607 stats_.sent_discarded_packets++; |
| 1607 } else { | 1608 } else { |
| 1608 send_rate_tracker_.AddSamples(sent); | 1609 send_rate_tracker_.AddSamples(sent); |
| 1609 } | 1610 } |
| 1610 return sent; | 1611 return sent; |
| 1611 } | 1612 } |
| 1612 | 1613 |
| 1613 } // namespace cricket | 1614 } // namespace cricket |
| OLD | NEW |