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

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: Addressed comments 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
« no previous file with comments | « no previous file | net/socket/tcp_server_socket_libevent.h » ('j') | net/socket/tcp_server_socket_libevent.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/server_socket.h
diff --git a/net/socket/server_socket.h b/net/socket/server_socket.h
index 11151eea1539636928b64aee65876dfacd9e60ec..f444f38285eb285949d58a175a418b20f4e9470d 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();
wtc 2012/09/14 19:20:17 This should be a pure virtual method, with = 0.
justinlin 2012/09/15 19:03:25 Done.
+
// 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 | « no previous file | net/socket/tcp_server_socket_libevent.h » ('j') | net/socket/tcp_server_socket_libevent.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698