6 #ifndef KAGOME_CORE_API_TRANSPORT_IMPL_LISTENER_IMPL_HPP 7 #define KAGOME_CORE_API_TRANSPORT_IMPL_LISTENER_IMPL_HPP 15 class AppStateManager;
25 public std::enable_shared_from_this<HttpListenerImpl> {
30 const std::shared_ptr<application::AppStateManager> &app_state_manager,
31 std::shared_ptr<Context> context,
38 bool prepare()
override;
41 bool start()
override;
46 void setHandlerForNewSession(NewSessionHandler &&on_new_session)
override;
49 void acceptOnce()
override;
64 #endif // KAGOME_CORE_API_TRANSPORT_IMPL_LISTENER_IMPL_HPP
std::shared_ptr< Context > context_
std::shared_ptr< SessionImpl > new_session_
server which listens for incoming connection, accepts connections making session from socket ...
server which listens for incoming connection, accepts connections making session from socket ...
std::shared_ptr< soralog::Logger > Logger
HTTP session for api service.
const Configuration config_
std::unique_ptr< NewSessionHandler > on_new_session_
std::unique_ptr< Acceptor > acceptor_
const SessionImpl::Configuration session_config_