1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include <rpc/client.h> #include <hwd/internal.h> 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"); } } // namespace hwd