| 38 | using namespace std; |
| 39 | |
| 40 | int main() { |
| 41 | FileDescriptorClient client(STDIN_FILENO, STDOUT_FILENO); |
| 42 | Client c(client); |
| 43 | |
| 44 | Json::Value params; |
| 45 | params["name"] = "Peter"; |
| 46 | |
| 47 | try { |
| 48 | cerr << "client:" << c.CallMethod("sayHello", params) << endl; |
| 49 | } catch (JsonRpcException &e) { |
| 50 | cerr << e.what() << endl; |
| 51 | } |
| 52 | } |
nothing calls this directly
no test coverage detected