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

Unified Diff: net/socket/server_socket.h

Issue 10907154: Allow server sockets to rebind to same port if there is nothing actively listening on that port. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix content_unittests build Created 8 years, 3 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: net/socket/server_socket.h
diff --git a/net/socket/server_socket.h b/net/socket/server_socket.h
index 11151eea1539636928b64aee65876dfacd9e60ec..a48ebecdbcb663ca45171a54f9b9fe4ca10f149d 100644
--- a/net/socket/server_socket.h
+++ b/net/socket/server_socket.h
@@ -19,6 +19,10 @@ class NET_EXPORT ServerSocket {
ServerSocket() { }
virtual ~ServerSocket() { }
+ // Allows the socket to share the local address to which the socket will be
+ // bound with other processes. Should be called before Listen().
+ virtual void AllowAddressReuse() = 0;
+
// Bind the socket and start listening. Destroy the socket to stop
// listening.
virtual int Listen(const net::IPEndPoint& address, int backlog) = 0;
« no previous file with comments | « content/browser/renderer_host/p2p/socket_host_tcp_server_unittest.cc ('k') | net/socket/tcp_server_socket_libevent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698