#include <AbstractClient.h>
Definition at line 14 of file AbstractClient.h.
◆ ~AbstractClient()
| virtual xrpl::test::AbstractClient::~AbstractClient |
( |
| ) |
|
|
virtualdefault |
◆ AbstractClient() [1/2]
| xrpl::test::AbstractClient::AbstractClient |
( |
| ) |
|
|
default |
◆ AbstractClient() [2/2]
| xrpl::test::AbstractClient::AbstractClient |
( |
AbstractClient const & | | ) |
|
|
delete |
◆ operator=()
◆ 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.
Implemented in xrpl::test::JSONRPCClient, and xrpl::test::WSClientImpl.
◆ version()
| virtual unsigned xrpl::test::AbstractClient::version |
( |
| ) |
const |
|
nodiscardpure virtual |
◆ disconnect()
| virtual void xrpl::test::AbstractClient::disconnect |
( |
| ) |
|
|
pure virtual |
Close the client's connection to the server.
Releases the connection the client holds against the server's per-port connection limit. After this call the client must not be used to invoke() again. Tests use this to deterministically free the slot rather than waiting for the server's idle timeout to drop it.
Implemented in xrpl::test::JSONRPCClient, and xrpl::test::WSClientImpl.