Remove http prefix

This commit is contained in:
Chunting Gu
2019-04-18 13:40:36 +08:00
parent 2ea04b9705
commit e621025cc3
66 changed files with 997 additions and 1047 deletions
+33
View File
@@ -0,0 +1,33 @@
#ifndef WEBCC_CONNECTION_POOL_H_
#define WEBCC_CONNECTION_POOL_H_
#include <set>
#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<ConnectionPtr> connections_;
};
} // namespace webcc
#endif // WEBCC_CONNECTION_POOL_H_