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 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1417 SignalReadPacket(this, data, len, packet_time, 0); | 1417 SignalReadPacket(this, data, len, packet_time, 0); |
1418 | 1418 |
1419 // May need to switch the sending connection based on the receiving media path | 1419 // May need to switch the sending connection based on the receiving media path |
1420 // if this is the controlled side. | 1420 // if this is the controlled side. |
1421 if (ice_role_ == ICEROLE_CONTROLLED && !best_nominated_connection() && | 1421 if (ice_role_ == ICEROLE_CONTROLLED && !best_nominated_connection() && |
1422 connection->writable() && best_connection_ != connection) { | 1422 connection->writable() && best_connection_ != connection) { |
1423 SwitchBestConnectionTo(connection); | 1423 SwitchBestConnectionTo(connection); |
1424 } | 1424 } |
1425 } | 1425 } |
1426 | 1426 |
1427 void P2PTransportChannel::OnSentPacket(PortInterface* port, | 1427 void P2PTransportChannel::OnSentPacket(const rtc::SentPacket& sent_packet) { |
1428 const rtc::SentPacket& sent_packet) { | |
1429 ASSERT(worker_thread_ == rtc::Thread::Current()); | 1428 ASSERT(worker_thread_ == rtc::Thread::Current()); |
1430 | 1429 |
1431 SignalSentPacket(this, sent_packet); | 1430 SignalSentPacket(this, sent_packet); |
1432 } | 1431 } |
1433 | 1432 |
1434 void P2PTransportChannel::OnReadyToSend(Connection* connection) { | 1433 void P2PTransportChannel::OnReadyToSend(Connection* connection) { |
1435 if (connection == best_connection_ && writable()) { | 1434 if (connection == best_connection_ && writable()) { |
1436 SignalReadyToSend(this); | 1435 SignalReadyToSend(this); |
1437 } | 1436 } |
1438 } | 1437 } |
1439 | 1438 |
1440 } // namespace cricket | 1439 } // namespace cricket |
OLD | NEW |