Index: net/socket/tcp_server_socket_win.h |
diff --git a/net/socket/tcp_server_socket_win.h b/net/socket/tcp_server_socket_win.h |
index a7ab78cd4e9dc51c7dc399675722d2189f31a6fe..ce5824245873c91c397bd9e514beb71fceb389f6 100644 |
--- a/net/socket/tcp_server_socket_win.h |
+++ b/net/socket/tcp_server_socket_win.h |
@@ -34,10 +34,16 @@ class NET_EXPORT_PRIVATE TCPServerSocketWin |
virtual int Accept(scoped_ptr<StreamSocket>* socket, |
const CompletionCallback& callback); |
+ // Sets corresponding flags to allow the socket to share the local address to |
+ // which the socket will be bound with other processes. Should be called |
+ // before Bind(). |
+ void AllowAddressReuse(); |
+ |
// base::ObjectWatcher::Delegate implementation. |
virtual void OnObjectSignaled(HANDLE object); |
private: |
+ int SetSocketOptions(); |
int AcceptInternal(scoped_ptr<StreamSocket>* socket); |
void Close(); |
@@ -49,6 +55,8 @@ class NET_EXPORT_PRIVATE TCPServerSocketWin |
scoped_ptr<StreamSocket>* accept_socket_; |
CompletionCallback accept_callback_; |
+ bool reuse_address_; |
+ |
BoundNetLog net_log_; |
}; |