#ifndef WEBCC_CONNECTION_POOL_H_ #define WEBCC_CONNECTION_POOL_H_ #include #include "webcc/connection.h" namespace webcc { class ConnectionPool { public: ConnectionPool(const ConnectionPool&) = delete; ConnectionPool& operator=(const ConnectionPool&) = delete; ConnectionPool(); // Add a connection to the pool and start it. void Start(ConnectionPtr c); // Close a connection. void Close(ConnectionPtr c); // Close all connections. void CloseAll(); private: /// The managed connections. std::set connections_; }; } // namespace webcc #endif // WEBCC_CONNECTION_POOL_H_