MCPcopy Create free account
hub / github.com/chronoxor/CppServer / onReceive

Method onReceive

examples/proto_client.cpp:63–63  ·  view source on GitHub ↗

Protocol handlers

Source from the content-addressed store, hash-verified

61
62 // Protocol handlers
63 void onReceive(const ::simple::DisconnectRequest& request) override { Client::onReceive(request); std::cout << "Received: " << request << std::endl; DisconnectAsync(); }
64 void onReceive(const ::simple::SimpleResponse& response) override { Client::onReceive(response); std::cout << "Received: " << response << std::endl; }
65 void onReceive(const ::simple::SimpleReject& reject) override { Client::onReceive(reject); std::cout << "Received: " << reject << std::endl; }
66 void onReceive(const ::simple::SimpleNotify& notify) override { Client::onReceive(notify); std::cout << "Received: " << notify << std::endl; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected