#include #include namespace hwd { static rpc::client & get_client() { static rpc::client c("127.0.0.1", hwd::internal::default_port); return c; } void stop_server() { get_client().call("stop_server"); } void set_value(const int value) { get_client().call("set_value", value); } int get_value() { return get_client().call("get_value").as(); } } // namespace hwd