Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: webrtc/base/asyncudpsocket.cc

Issue 1363573002: Wire up transport sequence number / send time callbacks to webrtc via libjingle. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add missing updated_options Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {
« no previous file with comments | « webrtc/base/asynctcpsocket.cc ('k') | webrtc/base/base_tests.gyp » ('j') | webrtc/call.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698