Chromium Code Reviews| 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; |