JSON-RPC 2.0
JSON-RPC 2.0 Modern C++ Library
Loading...
Searching...
No Matches
jsonrpc::transport::Transport Class Referenceabstract

Base class for JSON-RPC transport. More...

#include <transport.hpp>

Inheritance diagram for jsonrpc::transport::Transport:
Collaboration diagram for jsonrpc::transport::Transport:

Public Member Functions

 Transport ()=default
 
virtual ~Transport ()=default
 
 Transport (const Transport &)=default
 
auto operator= (const Transport &) -> Transport &=default
 
 Transport (Transport &&)=delete
 
auto operator= (Transport &&) -> Transport &=delete
 
virtual void SendMessage (const std::string &message)=0
 Sends a message in string to the transport layer.
 
virtual auto ReceiveMessage () -> std::string=0
 Receives a message from the transport layer.
 

Detailed Description

Base class for JSON-RPC transport.

This class defines the interface for communication transport layers.

Definition at line 12 of file transport.hpp.

Constructor & Destructor Documentation

◆ Transport() [1/3]

jsonrpc::transport::Transport::Transport ( )
default

◆ ~Transport()

virtual jsonrpc::transport::Transport::~Transport ( )
virtualdefault

◆ Transport() [2/3]

jsonrpc::transport::Transport::Transport ( const Transport & )
default

◆ Transport() [3/3]

jsonrpc::transport::Transport::Transport ( Transport && )
delete

Member Function Documentation

◆ operator=() [1/2]

auto jsonrpc::transport::Transport::operator= ( const Transport & ) -> Transport &=default
default

◆ operator=() [2/2]

auto jsonrpc::transport::Transport::operator= ( Transport && ) -> Transport &=delete
delete

◆ ReceiveMessage()

virtual auto jsonrpc::transport::Transport::ReceiveMessage ( ) -> std::string
pure virtual

◆ SendMessage()

virtual void jsonrpc::transport::Transport::SendMessage ( const std::string & message)
pure virtual

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