JSON-RPC 2.0
JSON-RPC 2.0 Modern C++ Library
|
Transport layer using standard I/O for JSON-RPC communication. More...
#include <stdio_transport.hpp>
Public Member Functions | |
void | SendMessage (const std::string &message) override |
Sends a message in string to the transport layer. | |
auto | ReceiveMessage () -> std::string override |
Receives a message from the transport layer. | |
Public Member Functions inherited from jsonrpc::transport::Transport | |
Transport ()=default | |
virtual | ~Transport ()=default |
Transport (const Transport &)=default | |
auto | operator= (const Transport &) -> Transport &=default |
Transport (Transport &&)=delete | |
auto | operator= (Transport &&) -> Transport &=delete |
Transport layer using standard I/O for JSON-RPC communication.
Definition at line 12 of file stdio_transport.hpp.
|
overridevirtual |
Receives a message from the transport layer.
Implements jsonrpc::transport::Transport.
Definition at line 14 of file stdio_transport.cpp.
|
overridevirtual |
Sends a message in string to the transport layer.
request | The JSON-RPC request as a string. |
Implements jsonrpc::transport::Transport.
Definition at line 9 of file stdio_transport.cpp.