JSON-RPC 2.0
JSON-RPC 2.0 Modern C++ Library
Loading...
Searching...
No Matches
framed_pipe_transport.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <asio.hpp>
4#include <asio/local/stream_protocol.hpp>
5#include <string>
6
9
11
17 public:
18 FramedPipeTransport(const std::string &socket_path, bool is_server);
19
20 void SendMessage(const std::string &message) override;
21 auto ReceiveMessage() -> std::string override;
22};
23
24} // namespace jsonrpc::transport
Transport layer using Asio Unix domain sockets for JSON-RPC communication with framing.
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.
FramedPipeTransport(const std::string &socket_path, bool is_server)
Base class for framed transport mechanisms.
Transport implementation using Unix domain sockets.