[#CRPCTable-appendCommand] = xref:CRPCTable.adoc[CRPCTable]::appendCommand :relfileprefix: ../ :mrdocs: Appends a CRPCCommand to the dispatch table. == Synopsis Declared in `<rpc/server.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void appendCommand( std::string const& name, xref:CRPCCommand.adoc[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 [cols="1,4"] |=== | Name| Description | *name* | The method name to register the command under. | *pcmd* | The command to append to the dispatch table. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#