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

Method sayHello

src/examples/stubserver.cpp:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34void MyStubServer::notifyServer() { cout << "Server got notified" << endl; }
35
36string MyStubServer::sayHello(const string &name) {
37 if (name == "")
38 throw JsonRpcException(-32100, "Name was empty");
39 return "Hello " + name;
40}
41
42int MyStubServer::addNumbers(int param1, int param2) { return param1 + param2; }
43

Callers 1

mainFunction · 0.45

Calls 1

JsonRpcExceptionClass · 0.50

Tested by

no test coverage detected