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; |