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..5c47cf4f31c1b6796ac647c07748890573288ef3 100644 |
--- a/net/socket/tcp_server_socket_win.h |
+++ b/net/socket/tcp_server_socket_win.h |
@@ -37,9 +37,15 @@ class NET_EXPORT_PRIVATE TCPServerSocketWin |
// base::ObjectWatcher::Delegate implementation. |
virtual void OnObjectSignaled(HANDLE object); |
+ // 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(); |
Sergey Ulanov
2012/09/12 21:52:35
Move this above base::ObjectWatcher::Delegate
justinlin
2012/09/13 07:12:56
Done.
|
+ |
private: |
int AcceptInternal(scoped_ptr<StreamSocket>* socket); |
void Close(); |
+ int SetSocketOptions(); |
SOCKET socket_; |
HANDLE socket_event_; |
@@ -49,6 +55,8 @@ class NET_EXPORT_PRIVATE TCPServerSocketWin |
scoped_ptr<StreamSocket>* accept_socket_; |
CompletionCallback accept_callback_; |
+ bool reuse_addr_; |
+ |
BoundNetLog net_log_; |
}; |