| 13 | using namespace std; |
| 14 | |
| 15 | int main() { |
| 16 | HttpClient client("http://localhost:8383"); |
| 17 | Client c(client); |
| 18 | |
| 19 | Json::Value params; |
| 20 | params["name"] = "Peter"; |
| 21 | |
| 22 | try { |
| 23 | cout << c.CallMethod("sayHello", params) << endl; |
| 24 | } catch (JsonRpcException &e) { |
| 25 | cerr << e.what() << endl; |
| 26 | } |
| 27 | } |
nothing calls this directly
no test coverage detected