MCPcopy Create free account
hub / github.com/apache/incubator-pegasus / register_remote_command_rpc

Function register_remote_command_rpc

src/remote_cmd/remote_command.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60bool register_remote_command_rpc()
61{
62 rpc_request_handler cb = [](dsn::message_ex *msg) {
63 auto rpc = remote_command_rpc::auto_reply(msg);
64 command_manager::instance().run_command(
65 rpc.request().cmd, rpc.request().arguments, rpc.response());
66 };
67
68 return dsn_rpc_register_handler(RPC_CLI_CLI_CALL, "call", cb);
69}
70
71} // namespace cmd
72} // namespace dist

Callers 2

initializeMethod · 0.85
startMethod · 0.85

Calls 2

dsn_rpc_register_handlerFunction · 0.85
run_commandMethod · 0.80

Tested by

no test coverage detected