Index: webrtc/p2p/base/port.cc |
diff --git a/webrtc/p2p/base/port.cc b/webrtc/p2p/base/port.cc |
index ce2855106caa8c9384271f3b1687c343061a5ce9..4af830c0bbe5b640c6ca0309e9f7ffdcfb05fdc9 100644 |
--- a/webrtc/p2p/base/port.cc |
+++ b/webrtc/p2p/base/port.cc |
@@ -312,6 +312,13 @@ void Port::OnReadPacket( |
} |
} |
+void Port::OnPacketSent(const rtc::SocketAddress& addr, |
+ const rtc::SentPacket& sent_packet) { |
+ Connection* connection = GetConnection(addr); |
+ if (connection != nullptr) |
+ connection->OnPacketSent(sent_packet); |
pthatcher1
2015/10/05 18:30:14
{}s please
pthatcher1
2015/10/05 18:30:14
Do we really need to know which connection it went
stefan-webrtc
2015/10/06 13:00:19
I think this is a good idea, now that I begin unde
pthatcher1
2015/10/06 20:23:55
Yes.
stefan-webrtc
2015/10/07 16:55:25
Done.
|
+} |
+ |
void Port::OnReadyToSend() { |
AddressMap::iterator iter = connections_.begin(); |
for (; iter != connections_.end(); ++iter) { |
@@ -983,6 +990,10 @@ void Connection::OnReadPacket( |
} |
} |
+void Connection::OnPacketSent(const rtc::SentPacket& sent_packet) { |
+ SignalSentPacket(this, sent_packet); |
+} |
+ |
void Connection::OnReadyToSend() { |
if (write_state_ == STATE_WRITABLE) { |
SignalReadyToSend(this); |