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

Unified Diff: webrtc/base/asyncsocket.h

Issue 1556743002: Bind a socket to a network if the network handle is set. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | webrtc/base/asyncsocket.cc » ('j') | webrtc/base/basictypes.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/asyncsocket.h
diff --git a/webrtc/base/asyncsocket.h b/webrtc/base/asyncsocket.h
index 7a859be962b56ae656dcd768f009777665c6913e..b50b554176239d0b139a87bf136823bf7e0c38d7 100644
--- a/webrtc/base/asyncsocket.h
+++ b/webrtc/base/asyncsocket.h
@@ -27,6 +27,8 @@ class AsyncSocket : public Socket {
AsyncSocket* Accept(SocketAddress* paddr) override = 0;
+ virtual int BindToNetwork(NetworkHandle handle) = 0;
pthatcher1 2016/01/06 21:58:46 Can you put a comment explaining when this should
honghaiz3 2016/01/12 20:36:41 Acknowledged.
+
// SignalReadEvent and SignalWriteEvent use multi_threaded_local to allow
// access concurrently from different thread.
// For example SignalReadEvent::connect will be called in AsyncUDPSocket ctor
@@ -60,6 +62,7 @@ class AsyncSocketAdapter : public AsyncSocket, public sigslot::has_slots<> {
int RecvFrom(void* pv, size_t cb, SocketAddress* paddr) override;
int Listen(int backlog) override;
AsyncSocket* Accept(SocketAddress* paddr) override;
+ int BindToNetwork(NetworkHandle handle) override;
int Close() override;
int GetError() const override;
void SetError(int error) override;
« no previous file with comments | « no previous file | webrtc/base/asyncsocket.cc » ('j') | webrtc/base/basictypes.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698