Index: webrtc/base/asyncudpsocket.cc |
diff --git a/webrtc/base/asyncudpsocket.cc b/webrtc/base/asyncudpsocket.cc |
index 3e2ecc4cda487697f6dbcef8c30590a9bec24a2e..51a8fa0af0a2a0cbd4126cba9ffa5647b1c32d15 100644 |
--- a/webrtc/base/asyncudpsocket.cc |
+++ b/webrtc/base/asyncudpsocket.cc |
@@ -60,13 +60,19 @@ SocketAddress AsyncUDPSocket::GetRemoteAddress() const { |
int AsyncUDPSocket::Send(const void *pv, size_t cb, |
const rtc::PacketOptions& options) { |
- return socket_->Send(pv, cb); |
+ rtc::SentPacket sent_packet(options.packet_id, rtc::Time()); |
+ int ret = socket_->Send(pv, cb); |
+ SignalSentPacket(this, sent_packet); |
+ return ret; |
} |
int AsyncUDPSocket::SendTo(const void *pv, size_t cb, |
const SocketAddress& addr, |
const rtc::PacketOptions& options) { |
- return socket_->SendTo(pv, cb, addr); |
+ rtc::SentPacket sent_packet(options.packet_id, rtc::Time()); |
+ int ret = socket_->SendTo(pv, cb, addr); |
+ SignalSentPacket(this, sent_packet); |
+ return ret; |
} |
int AsyncUDPSocket::Close() { |