| 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 // because we then get back responses for them, which this code correctly | 303 // because we then get back responses for them, which this code correctly |
| 304 // does not handle. | 304 // does not handle. |
| 305 if (msg->type() != STUN_BINDING_RESPONSE) { | 305 if (msg->type() != STUN_BINDING_RESPONSE) { |
| 306 LOG_J(LS_ERROR, this) << "Received unexpected STUN message type (" | 306 LOG_J(LS_ERROR, this) << "Received unexpected STUN message type (" |
| 307 << msg->type() << ") from unknown address (" | 307 << msg->type() << ") from unknown address (" |
| 308 << addr.ToSensitiveString() << ")"; | 308 << addr.ToSensitiveString() << ")"; |
| 309 } | 309 } |
| 310 } | 310 } |
| 311 } | 311 } |
| 312 | 312 |
| 313 void Port::OnSentPacket(const rtc::SentPacket& sent_packet) { | |
| 314 PortInterface::SignalSentPacket(this, sent_packet); | |
| 315 } | |
| 316 | |
| 317 void Port::OnReadyToSend() { | 313 void Port::OnReadyToSend() { |
| 318 AddressMap::iterator iter = connections_.begin(); | 314 AddressMap::iterator iter = connections_.begin(); |
| 319 for (; iter != connections_.end(); ++iter) { | 315 for (; iter != connections_.end(); ++iter) { |
| 320 iter->second->OnReadyToSend(); | 316 iter->second->OnReadyToSend(); |
| 321 } | 317 } |
| 322 } | 318 } |
| 323 | 319 |
| 324 size_t Port::AddPrflxCandidate(const Candidate& local) { | 320 size_t Port::AddPrflxCandidate(const Candidate& local) { |
| 325 candidates_.push_back(local); | 321 candidates_.push_back(local); |
| 326 return (candidates_.size() - 1); | 322 return (candidates_.size() - 1); |
| (...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1423 ASSERT(sent < 0); | 1419 ASSERT(sent < 0); |
| 1424 error_ = port_->GetError(); | 1420 error_ = port_->GetError(); |
| 1425 sent_packets_discarded_++; | 1421 sent_packets_discarded_++; |
| 1426 } else { | 1422 } else { |
| 1427 send_rate_tracker_.AddSamples(sent); | 1423 send_rate_tracker_.AddSamples(sent); |
| 1428 } | 1424 } |
| 1429 return sent; | 1425 return sent; |
| 1430 } | 1426 } |
| 1431 | 1427 |
| 1432 } // namespace cricket | 1428 } // namespace cricket |
| OLD | NEW |