6#include <userver/components/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;
57 const ComponentConfig& config,
58 const ComponentContext& context,
59 const server::net::ListenerConfig& acceptor_config
64 void OnAllComponentsLoaded()
final;
65 void OnAllComponentsAreStopping()
final;
68 engine::TaskProcessor& acceptor_task_processor_;
69 engine::TaskProcessor& sockets_task_processor_;
71 engine::
io::Socket listen_sock_;
72 engine::
Task acceptor_;