[#CRPCTable-appendCommand]
= xref:CRPCTable.adoc[CRPCTable]::appendCommand
:relfileprefix: ../
:mrdocs:

Appends a CRPCCommand to the dispatch table&period;

== Synopsis

Declared in `&lt;rpc&sol;server&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
appendCommand(
    std::string const& name,
    xref:CRPCCommand.adoc[CRPCCommand] const* pcmd);
----

== Description

Precondition&colon; RPC server is not running

Commands with different method names but the same unique&lowbar;id will be considered aliases, and only the first registered method name will show up in the help text command listing&period; Aliased commands do not have to have the same behavior&period; 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&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *name*
| The method name to register the command under&period;
| *pcmd*
| The command to append to the dispatch table&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
