JSON-RPC 2.0
JSON-RPC 2.0 Modern C++ Library
|
Base class for JSON-RPC transport. More...
#include <transport.hpp>
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. | |
Base class for JSON-RPC transport.
This class defines the interface for communication transport layers.
Definition at line 12 of file transport.hpp.
|
default |
|
virtualdefault |
|
default |
|
delete |
|
pure virtual |
Receives a message from the transport layer.
Implemented in jsonrpc::transport::FramedPipeTransport, jsonrpc::transport::FramedSocketTransport, jsonrpc::transport::FramedStdioTransport, jsonrpc::transport::PipeTransport, jsonrpc::transport::SocketTransport, and jsonrpc::transport::StdioTransport.
|
pure virtual |
Sends a message in string to the transport layer.
request | The JSON-RPC request as a string. |
Implemented in jsonrpc::transport::FramedPipeTransport, jsonrpc::transport::FramedSocketTransport, jsonrpc::transport::FramedStdioTransport, jsonrpc::transport::PipeTransport, jsonrpc::transport::SocketTransport, and jsonrpc::transport::StdioTransport.