| 200 | } |
| 201 | |
| 202 | size_t Acceptor::ConnectionCount() const { |
| 203 | // Notice that _socket_map may be modified concurrently. This actually |
| 204 | // assumes that size() is safe to call concurrently. |
| 205 | return _socket_map.size(); |
| 206 | } |
| 207 | |
| 208 | void Acceptor::ListConnections(std::vector<SocketId>* conn_list, |
| 209 | size_t max_copied) { |