JSON-RPC 2.0
JSON-RPC 2.0 Modern C++ Library
Loading...
Searching...
No Matches
stdio_transport.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
6
7namespace jsonrpc::transport {
8
12class StdioTransport : public Transport {
13 public:
14 void SendMessage(const std::string &message) override;
15 auto ReceiveMessage() -> std::string override;
16};
17
18} // namespace jsonrpc::transport
Transport layer using standard I/O for JSON-RPC communication.
auto ReceiveMessage() -> std::string override
Receives a message from the transport layer.
void SendMessage(const std::string &message) override
Sends a message in string to the transport layer.
Base class for JSON-RPC transport.
Definition transport.hpp:12