Example of a simple client.
#include <cassert>
#include <iostream>
int main() {
const int result = client.
call<
int>(
"add", 2, 3);
std::cout << "Result: " << result << std::endl;
assert(result == 5);
return 0;
}
Class of builders of clients.
Client build()
Build a client.
ClientBuilder & connect_to(addresses::URI uri)
Add a URI to connect to.
std::decay_t< Result > call(messages::MethodNameView method_name, const Parameters &... parameters)
Synchronously call a method.
Definition of Client class.
Definition of ClientBuilder class.