26 #ifndef STATICLIB_PION_TCP_SERVER_HPP
27 #define STATICLIB_PION_TCP_SERVER_HPP
29 #include <condition_variable>
35 #include "staticlib/config.hpp"
106 tcp_server(
const asio::ip::tcp::endpoint& endpoint, uint32_t number_of_threads) :
131 }
catch (
const std::exception& e) {
148 void stop(
bool wait_until_finished =
false);
166 tcp_conn->set_lifecycle(tcp_connection::lifecycle::close);
193 void handle_stop_request();
206 void handle_accept(tcp_connection_ptr& tcp_conn,
const std::error_code& accept_error);
214 void handle_ssl_handshake(tcp_connection_ptr& tcp_conn,
const std::error_code& handshake_error);
224 void finish_connection(tcp_connection_ptr& tcp_conn);
232 std::size_t prune_connections();
239 #endif // STATICLIB_PION_TCP_SERVER_HPP