RPC client for an agent.
More...
#include <client.hpp>
RPC client for an agent.
Definition at line 15 of file parsec/agent/client.hpp.
◆ client() [1/4]
Constructor.
- Parameters
-
endpoints | RPC server endpoints for the agent cluster. |
Definition at line 12 of file parsec/agent/client.cpp.
◆ client() [2/4]
cbdc::parsec::agent::rpc::client::client |
( |
| ) |
|
|
delete |
◆ ~client()
cbdc::parsec::agent::rpc::client::~client |
( |
| ) |
|
|
default |
◆ client() [3/4]
cbdc::parsec::agent::rpc::client::client |
( |
const client & | | ) |
|
|
delete |
◆ client() [4/4]
cbdc::parsec::agent::rpc::client::client |
( |
client && | | ) |
|
|
delete |
◆ exec()
Requests execution of the function at a key with the given parameters.
- Parameters
-
function | key where function bytecode is located. |
param | parameter to call function with. |
is_readonly_run | true if agent should skip writing any state changes. |
result_callback | function to call with execution result. |
- Returns
- true if the request was sent successfully.
Definition at line 20 of file parsec/agent/client.cpp.
◆ init()
auto cbdc::parsec::agent::rpc::client::init |
( |
| ) |
-> bool |
Intializes the underlying TCP client.
- Returns
- true if the TCP client initialized successfully.
Definition at line 16 of file parsec/agent/client.cpp.
◆ operator=() [1/2]
auto cbdc::parsec::agent::rpc::client::operator= |
( |
client && | | ) |
-> client &=delete |
|
delete |
◆ operator=() [2/2]
auto cbdc::parsec::agent::rpc::client::operator= |
( |
const client & | | ) |
-> client &=delete |
|
delete |
The documentation for this class was generated from the following files: