MCPcopy Create free account
hub / github.com/cinemast/libjson-rpc-cpp / main

Function main

src/examples/filedescriptorclient.cpp:40–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38using namespace std;
39
40int 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}

Callers

nothing calls this directly

Calls 2

CallMethodMethod · 0.80
whatMethod · 0.45

Tested by

no test coverage detected