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 |
313 void Port::OnReadyToSend() { | 317 void Port::OnReadyToSend() { |
314 AddressMap::iterator iter = connections_.begin(); | 318 AddressMap::iterator iter = connections_.begin(); |
315 for (; iter != connections_.end(); ++iter) { | 319 for (; iter != connections_.end(); ++iter) { |
316 iter->second->OnReadyToSend(); | 320 iter->second->OnReadyToSend(); |
317 } | 321 } |
318 } | 322 } |
319 | 323 |
320 size_t Port::AddPrflxCandidate(const Candidate& local) { | 324 size_t Port::AddPrflxCandidate(const Candidate& local) { |
321 candidates_.push_back(local); | 325 candidates_.push_back(local); |
322 return (candidates_.size() - 1); | 326 return (candidates_.size() - 1); |
(...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1410 ASSERT(sent < 0); | 1414 ASSERT(sent < 0); |
1411 error_ = port_->GetError(); | 1415 error_ = port_->GetError(); |
1412 sent_packets_discarded_++; | 1416 sent_packets_discarded_++; |
1413 } else { | 1417 } else { |
1414 send_rate_tracker_.AddSamples(sent); | 1418 send_rate_tracker_.AddSamples(sent); |
1415 } | 1419 } |
1416 return sent; | 1420 return sent; |
1417 } | 1421 } |
1418 | 1422 |
1419 } // namespace cricket | 1423 } // namespace cricket |
OLD | NEW |