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

Unified Diff: webrtc/base/asyncudpsocket.cc

Issue 1535943004: Multi-networking with Android L. Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « webrtc/base/asyncudpsocket.h ('k') | webrtc/base/natsocketfactory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/asyncudpsocket.cc
diff --git a/webrtc/base/asyncudpsocket.cc b/webrtc/base/asyncudpsocket.cc
index 51a8fa0af0a2a0cbd4126cba9ffa5647b1c32d15..97aac975d322f456c506dedd706b58fcd7a8f2cf 100644
--- a/webrtc/base/asyncudpsocket.cc
+++ b/webrtc/base/asyncudpsocket.cc
@@ -10,6 +10,7 @@
#include "webrtc/base/asyncudpsocket.h"
#include "webrtc/base/logging.h"
+#include "webrtc/base/network.h"
namespace rtc {
@@ -125,4 +126,13 @@ void AsyncUDPSocket::OnWriteEvent(AsyncSocket* socket) {
SignalReadyToSend(this);
}
+// Do the same for tcp socket
+void AsyncUDPSocket::BindToNetwork(const Network* network) {
+ ASSERT(network != nullptr);
+ if (socket_ && network->handle()) {
+ int result = socket_->BindToNetwork(network->handle());
+ LOG(LS_INFO) << "Bind network " << network->name() << " handle " << network->handle() << " result " << result;
+ }
+}
+
} // namespace rtc
« no previous file with comments | « webrtc/base/asyncudpsocket.h ('k') | webrtc/base/natsocketfactory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698