Index: net/socket/tcp_server_socket_libevent.h |
diff --git a/net/socket/tcp_server_socket_libevent.h b/net/socket/tcp_server_socket_libevent.h |
index 946cc50f949d56911d0a0a437a0c02b3dfd95165..1760395697d79b663cd5f7a3e4f3e64493475d8a 100644 |
--- a/net/socket/tcp_server_socket_libevent.h |
+++ b/net/socket/tcp_server_socket_libevent.h |
@@ -35,9 +35,15 @@ class NET_EXPORT_PRIVATE TCPServerSocketLibevent |
virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; |
virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; |
+ // 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
nit: put this above MessageLoopForIO::Watcher
justinlin
2012/09/13 07:12:56
Done.
|
+ |
private: |
int AcceptInternal(scoped_ptr<StreamSocket>* socket); |
void Close(); |
+ int SetSocketOptions(); |
Sergey Ulanov
2012/09/12 21:52:35
nit: I would place it before AcceptInternal() to r
justinlin
2012/09/13 07:12:56
Done.
wtc
2012/09/13 18:31:55
This seems like a good idea. To be consistent, sho
justinlin
2012/09/14 03:54:40
Done.
|
int socket_; |
@@ -46,6 +52,8 @@ class NET_EXPORT_PRIVATE TCPServerSocketLibevent |
scoped_ptr<StreamSocket>* accept_socket_; |
CompletionCallback accept_callback_; |
+ bool reuse_addr_; |
Sergey Ulanov
2012/09/12 21:52:35
nit: reuse_address_
justinlin
2012/09/13 07:12:56
Done.
|
+ |
BoundNetLog net_log_; |
}; |