| 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..fab8bf0cf2513a7081988a7fd47fcc29f62fa165 100644
|
| --- a/net/socket/tcp_server_socket_win.h
|
| +++ b/net/socket/tcp_server_socket_win.h
|
| @@ -29,15 +29,17 @@ class NET_EXPORT_PRIVATE TCPServerSocketWin
|
| ~TCPServerSocketWin();
|
|
|
| // net::ServerSocket implementation.
|
| - virtual int Listen(const net::IPEndPoint& address, int backlog);
|
| - virtual int GetLocalAddress(IPEndPoint* address) const;
|
| + virtual void AllowAddressReuse() OVERRIDE;
|
| + virtual int Listen(const net::IPEndPoint& address, int backlog) OVERRIDE;
|
| + virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
|
| virtual int Accept(scoped_ptr<StreamSocket>* socket,
|
| - const CompletionCallback& callback);
|
| + const CompletionCallback& callback) OVERRIDE;
|
|
|
| // base::ObjectWatcher::Delegate implementation.
|
| virtual void OnObjectSignaled(HANDLE object);
|
|
|
| private:
|
| + int SetSocketOptions();
|
| int AcceptInternal(scoped_ptr<StreamSocket>* socket);
|
| void Close();
|
|
|
| @@ -49,6 +51,8 @@ class NET_EXPORT_PRIVATE TCPServerSocketWin
|
| scoped_ptr<StreamSocket>* accept_socket_;
|
| CompletionCallback accept_callback_;
|
|
|
| + bool reuse_address_;
|
| +
|
| BoundNetLog net_log_;
|
| };
|
|
|
|
|