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

Unified Diff: net/udp/udp_client_socket.cc

Issue 721273002: Remove timing limitation to set Broadcast, ReceiveBuffer, and SendBuffer options from UDPSocket. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « media/cast/test/utility/udp_proxy.cc ('k') | net/udp/udp_server_socket.h » ('j') | 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 f6f904a6beb9f72c448c15caf97572454637653c..9cdaacebb10229a29d6ca4f1182d209368f023a2 100644
--- a/net/udp/udp_client_socket.cc
+++ b/net/udp/udp_client_socket.cc
@@ -4,6 +4,7 @@
#include "net/udp/udp_client_socket.h"
+#include "net/base/net_errors.h"
#include "net/base/net_log.h"
namespace net {
@@ -19,6 +20,9 @@ UDPClientSocket::~UDPClientSocket() {
}
int UDPClientSocket::Connect(const IPEndPoint& address) {
+ int rv = socket_.Open(address.GetFamily());
+ if (rv != OK)
+ return rv;
return socket_.Connect(address);
}
« no previous file with comments | « media/cast/test/utility/udp_proxy.cc ('k') | net/udp/udp_server_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698