36 std::shared_ptr<logging::Logger> logger)
46 return std::make_shared<TCPAcceptorFactory>(
51 return std::make_shared<TCPConnector>(
61 StatusCode::PRECONDITION_NOT_MET,
"Executor has been deleted.");
Class of exceptions in cpp-msgpack-rpc library.
Class of configuration of parsers of messages.
TCPBackend(const std::shared_ptr< executors::IExecutor > &executor, const config::MessageParserConfig &message_parser_config, std::shared_ptr< logging::Logger > logger)
Constructor.
config::MessageParserConfig message_parser_config_
Configuration of parsers of messages.
std::string_view scheme() const noexcept override
Get the scheme.
std::shared_ptr< logging::Logger > logger_
Logger.
std::shared_ptr< executors::IExecutor > executor() const
Get the executor.
std::shared_ptr< IAcceptorFactory > create_acceptor_factory() override
Create a factory to create acceptors.
std::weak_ptr< executors::IExecutor > executor_
Executor.
~TCPBackend() noexcept override
Destructor.
std::shared_ptr< IConnector > create_connector() override
Create a connector to connect to endpoints of acceptors.
Definition of MessageParserConfig class.
Definition of MsgpackRPCException class.
constexpr std::string_view TCP_SCHEME
Scheme of TCP.
Namespace of executors to process asynchronous tasks.
Namespace of transport of messages via TCP.
Definition of constants of schemes.
Definition of StatusCode enumeration.
Definition of TCPAcceptorFactory class.
Definition of TCPBackend class.
Definition of TCPConnector class.