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

Unified Diff: net/udp/udp_client_socket.cc

Issue 1327923002: Migrates QUIC sessions to a new network when old network is (about to be) disconnected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: Addressed comments 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
« no previous file with comments | « net/udp/udp_client_socket.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/udp/udp_client_socket.cc
diff --git a/net/udp/udp_client_socket.cc b/net/udp/udp_client_socket.cc
index ca1f9e2439dd68c9f623a8b416dc5c9ae2372873..fb8f54806b4e95b21b24fba15c2786befebac952 100644
--- a/net/udp/udp_client_socket.cc
+++ b/net/udp/udp_client_socket.cc
@@ -24,6 +24,12 @@ int UDPClientSocket::BindToNetwork(
return socket_.BindToNetwork(network);
}
+int UDPClientSocket::BindToDefaultNetwork() {
+ NetworkChangeNotifier::NetworkHandle network =
+ NetworkChangeNotifier::GetDefaultNetwork();
+ return BindToNetwork(network);
pauljensen 2015/10/19 19:01:39 The reason this needs to loop is that the default
pauljensen 2015/10/19 19:49:04 This incorrectly returns ERR_INTERNET_DISCONNECTED
Jana 2015/11/17 01:50:09 Let's continue this conversation on your CL to imp
+}
+
int UDPClientSocket::Connect(const IPEndPoint& address) {
int rv = socket_.Open(address.GetFamily());
if (rv != OK)
« no previous file with comments | « net/udp/udp_client_socket.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698