|
boost::asio::ip::tcp::endpoint | ep_ |
|
boost::asio::io_service | ios_ |
|
boost::asio::ip::tcp::socket | stream_ |
|
boost::beast::multi_buffer | bin_ |
|
boost::beast::multi_buffer | bout_ |
|
unsigned | rpc_version_ |
|
Definition at line 35 of file JSONRPCClient.cpp.
◆ JSONRPCClient()
ripple::test::JSONRPCClient::JSONRPCClient |
( |
Config const & |
cfg, |
|
|
unsigned |
rpc_version |
|
) |
| |
|
explicit |
◆ ~JSONRPCClient()
ripple::test::JSONRPCClient::~JSONRPCClient |
( |
| ) |
|
|
override |
◆ getEndpoint()
static boost::asio::ip::tcp::endpoint ripple::test::JSONRPCClient::getEndpoint |
( |
BasicConfig const & |
cfg | ) |
|
|
staticprivate |
◆ buffer_string()
template<class ConstBufferSequence >
static std::string ripple::test::JSONRPCClient::buffer_string |
( |
ConstBufferSequence const & |
b | ) |
|
|
staticprivate |
◆ invoke()
Submit a command synchronously.
The arguments to the function and the returned JSON are in a normalized format, the same whether the client is using the JSON-RPC over HTTP/S or WebSocket transport.
- Parameters
-
cmd | The command to execute |
params | Json::Value of null or object type with zero or more key/value pairs. |
- Returns
- The server response in normalized format.
Implements ripple::test::AbstractClient.
Definition at line 99 of file JSONRPCClient.cpp.
◆ version()
unsigned ripple::test::JSONRPCClient::version |
( |
| ) |
const |
|
overridevirtual |
◆ ep_
boost::asio::ip::tcp::endpoint ripple::test::JSONRPCClient::ep_ |
|
private |
◆ ios_
boost::asio::io_service ripple::test::JSONRPCClient::ios_ |
|
private |
◆ stream_
boost::asio::ip::tcp::socket ripple::test::JSONRPCClient::stream_ |
|
private |
◆ bin_
boost::beast::multi_buffer ripple::test::JSONRPCClient::bin_ |
|
private |
◆ bout_
boost::beast::multi_buffer ripple::test::JSONRPCClient::bout_ |
|
private |
◆ rpc_version_
unsigned ripple::test::JSONRPCClient::rpc_version_ |
|
private |