Definition at line 50 of file WSClient.cpp.
◆ error_code
◆ WSClientImpl()
◆ ~WSClientImpl()
| xrpl::test::WSClientImpl::~WSClientImpl |
( |
| ) |
|
|
override |
◆ getEndpoint()
| boost::asio::ip::tcp::endpoint xrpl::test::WSClientImpl::getEndpoint |
( |
BasicConfig const & | cfg, |
|
|
bool | v2 ) |
|
staticprivate |
◆ bufferString()
template<class ConstBuffers>
| std::string xrpl::test::WSClientImpl::bufferString |
( |
ConstBuffers const & | b | ) |
|
|
staticprivate |
◆ cleanup()
| void xrpl::test::WSClientImpl::cleanup |
( |
| ) |
|
|
private |
◆ 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 xrpl::test::AbstractClient.
Definition at line 198 of file WSClient.cpp.
◆ getMsg()
◆ findMsg()
◆ version()
| unsigned xrpl::test::WSClientImpl::version |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ disconnect()
| void xrpl::test::WSClientImpl::disconnect |
( |
| ) |
|
|
overridevirtual |
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.
Implements xrpl::test::AbstractClient.
Definition at line 298 of file WSClient.cpp.
◆ onReadMsg()
| void xrpl::test::WSClientImpl::onReadMsg |
( |
error_code const & | ec | ) |
|
|
private |
◆ ios_
| boost::asio::io_context xrpl::test::WSClientImpl::ios_ |
|
private |
◆ work_
| std::optional<boost::asio::executor_work_guard<boost::asio::io_context::executor_type> > xrpl::test::WSClientImpl::work_ |
|
private |
◆ strand_
| boost::asio::strand<boost::asio::io_context::executor_type> xrpl::test::WSClientImpl::strand_ |
|
private |
◆ thread_
◆ stream_
| boost::asio::ip::tcp::socket xrpl::test::WSClientImpl::stream_ |
|
private |
◆ ws_
| boost::beast::websocket::stream<boost::asio::ip::tcp::socket&> xrpl::test::WSClientImpl::ws_ |
|
private |
◆ rb_
| boost::beast::multi_buffer xrpl::test::WSClientImpl::rb_ |
|
private |
◆ peerClosed_
| bool xrpl::test::WSClientImpl::peerClosed_ = false |
|
private |
◆ kDisconnectTimeout
◆ readEnded_
| xrpl::Mutex<bool> xrpl::test::WSClientImpl::readEnded_ |
|
private |
◆ readEndCv_
◆ m_
◆ cv_
◆ msgs_
◆ rpcVersion_
| unsigned xrpl::test::WSClientImpl::rpcVersion_ |
|
private |