Appends a CRPCCommand to the dispatch table.

Synopsis

Declared in <rpc/server.h>

void
appendCommand(
    std::string const& name,
    CRPCCommand const* pcmd);

Description

Precondition: RPC server is not running

Commands with different method names but the same unique_id will be considered aliases, and only the first registered method name will show up in the help text command listing. Aliased commands do not have to have the same behavior. Server and client code can distinguish between calls based on method name, and aliased commands can also register different names, types, and numbers of parameters.

Parameters

Name

Description

name

The method name to register the command under.

pcmd

The command to append to the dispatch table.

Created with MrDocs