6#include <userver/components/loggable_component_base.hpp>
7#include <userver/concurrent/background_task_storage.hpp>
8#include <userver/engine/io/socket.hpp>
9#include <userver/engine/task/task.hpp>
11USERVER_NAMESPACE_BEGIN
13namespace server::net {
43 TcpAcceptorBase(
const ComponentConfig&,
const ComponentContext&);
44 ~TcpAcceptorBase()
override;
56 TcpAcceptorBase(
const ComponentConfig& config,
57 const ComponentContext& context,
58 const server::net::ListenerConfig& acceptor_config);
62 void OnAllComponentsLoaded()
final;
63 void OnAllComponentsAreStopping()
final;
66 engine::TaskProcessor& acceptor_task_processor_;
67 engine::TaskProcessor& sockets_task_processor_;
69 engine::
io::Socket listen_sock_;
70 engine::
Task acceptor_;