[#CRPCCommand-2constructor-04]
= xref:CRPCCommand.adoc[CRPCCommand]::CRPCCommand
:relfileprefix: ../
:mrdocs:

Construct a command from an Actor callback supporting multiple handlers&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
CRPCCommand(
    std::string category,
    std::string name,
    xref:CRPCCommand/Actor-05.adoc[Actor] actor,
    std::vector&lt;std::pair&lt;std::string, bool&gt;&gt; args,
    intptr&lowbar;t unique&lowbar;id);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *category*
| The help category the command is grouped under&period;
| *name*
| The method name clients invoke&period;
| *actor*
| The handler callback that processes the request&period;
| *args*
| Method arguments paired with whether each is named&hyphen;only&period;
| *unique&lowbar;id*
| Identifier used to detect aliased commands&period;
|===


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