1 #ifndef CONNECTIONMANAGER_H 2 #define CONNECTIONMANAGER_H 4 #include "connection.h" 14 BOOST_LOG_TRIVIAL(info) <<
"create ConnectionManager";
22 connection_ptr
get_connection(boost::asio::ip::tcp::socket&& _socket);
25 for (
auto& value_con: pool_connections) {
26 value_con->set_busy(
false);
28 pool_connections.clear();
31 std::vector<connection_ptr> pool_connections;
37 void print_pool()
const noexcept;
40 #endif // CONNECTIONMANAGER_H ConnectionManager.
Definition: connection_manager.h:10
connection_ptr get_connection(boost::asio::ip::tcp::socket &&_socket)
get new or old connection for new client
Definition: connection_manager.cpp:4