CRPCCommand::CRPCCommand

Construct a command from an Actor callback supporting multiple handlers.

Synopsis

Declared in <rpc/server.h>

CRPCCommand(
    std::string category,
    std::string name,
    Actor actor,
    std::vector<std::pair<std::string, bool>> args,
    intptr_t unique_id);

Parameters

NameDescription
categoryThe help category the command is grouped under.
nameThe method name clients invoke.
actorThe handler callback that processes the request.
argsMethod arguments paired with whether each is named-only.
unique_idIdentifier used to detect aliased commands.