cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
Loading...
Searching...
No Matches
msgpack_rpc::servers::impl::IServerImpl Class Referenceabstract

Interface of internal implementation of servers. More...

#include <msgpack_rpc/servers/impl/i_server_impl.h>

Inheritance diagram for msgpack_rpc::servers::impl::IServerImpl:
Collaboration diagram for msgpack_rpc::servers::impl::IServerImpl:

Public Member Functions

 IServerImpl (const IServerImpl &)=delete
 IServerImpl (IServerImpl &&)=delete
virtual ~IServerImpl () noexcept=default
 Destructor.
virtual std::shared_ptr< executors::IExecutorexecutor ()=0
 Get the executor.
virtual std::vector< addresses::URIlocal_endpoint_uris ()=0
 Get the URIs of the local endpoints in this server.
IServerImploperator= (const IServerImpl &)=delete
IServerImploperator= (IServerImpl &&)=delete
virtual void run_until_signal ()=0
 Run processing of this server until SIGINT or SIGTERM is received.
virtual void stop ()=0
 Stop processing of this server.

Protected Member Functions

 IServerImpl () noexcept=default
 Constructor.

Detailed Description

Interface of internal implementation of servers.

Definition at line 33 of file i_server_impl.h.

Member Function Documentation

◆ executor()

virtual std::shared_ptr< executors::IExecutor > msgpack_rpc::servers::impl::IServerImpl::executor ( )
nodiscardpure virtual

Get the executor.

Returns
Executor.
Note
This function is mainly for testing. So this function may be removed in the future.

Implemented in msgpack_rpc::servers::impl::ServerImpl.

◆ local_endpoint_uris()

virtual std::vector< addresses::URI > msgpack_rpc::servers::impl::IServerImpl::local_endpoint_uris ( )
nodiscardpure virtual

Get the URIs of the local endpoints in this server.

Returns
URIs.

Implemented in msgpack_rpc::servers::impl::ServerImpl.

◆ run_until_signal()

virtual void msgpack_rpc::servers::impl::IServerImpl::run_until_signal ( )
pure virtual

Run processing of this server until SIGINT or SIGTERM is received.

Note
When this function returns, this server is stopped automatically.

Implemented in msgpack_rpc::servers::impl::ServerImpl.

◆ stop()

virtual void msgpack_rpc::servers::impl::IServerImpl::stop ( )
pure virtual

Stop processing of this server.

Implemented in msgpack_rpc::servers::impl::ServerImpl.


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