cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
Loading...
Searching...
No Matches
msgpack_rpc::transport::IBackend Class Referenceabstract

Interface of backends of protocols. More...

#include <msgpack_rpc/transport/i_backend.h>

Inheritance diagram for msgpack_rpc::transport::IBackend:
Collaboration diagram for msgpack_rpc::transport::IBackend:

Public Member Functions

 IBackend (const IBackend &)=delete
 IBackend (IBackend &&)=delete
virtual ~IBackend () noexcept=default
 Destructor.
virtual std::shared_ptr< IAcceptorFactorycreate_acceptor_factory ()=0
 Create a factory to create acceptors.
virtual std::shared_ptr< IConnectorcreate_connector ()=0
 Create a connector to connect to endpoints of acceptors.
IBackendoperator= (const IBackend &)=delete
IBackendoperator= (IBackend &&)=delete
virtual std::string_view scheme () const noexcept=0
 Get the scheme.

Protected Member Functions

 IBackend () noexcept=default
 Constructor.

Detailed Description

Interface of backends of protocols.

Note
Objects of this class are factories of acceptor factories, connectors.

Definition at line 35 of file i_backend.h.

Member Function Documentation

◆ create_acceptor_factory()

virtual std::shared_ptr< IAcceptorFactory > msgpack_rpc::transport::IBackend::create_acceptor_factory ( )
nodiscardpure virtual

Create a factory to create acceptors.

Returns
Factory of acceptors.

Implemented in msgpack_rpc::transport::tcp::TCPBackend.

◆ create_connector()

virtual std::shared_ptr< IConnector > msgpack_rpc::transport::IBackend::create_connector ( )
nodiscardpure virtual

Create a connector to connect to endpoints of acceptors.

Returns
Connector.

Implemented in msgpack_rpc::transport::tcp::TCPBackend.

◆ scheme()

virtual std::string_view msgpack_rpc::transport::IBackend::scheme ( ) const
nodiscardpure virtualnoexcept

Get the scheme.

Returns
Scheme.

Implemented in msgpack_rpc::transport::tcp::TCPBackend.


The documentation for this class was generated from the following file: