[#BloombergLP-balb-ControlManager-dispatchMessage-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/ControlManager.adoc[ControlManager]::dispatchMessage
:relfileprefix: ../../../
:mrdocs:

`dispatchMessage` overloads

== Synopses

Declared in `&lt;balb&lowbar;controlmanager&period;h&gt;`

Parse and dispatch the specified complete message&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/balb/ControlManager/dispatchMessage-02.adoc[dispatchMessage](std::string&lowbar;view const& message) const;
----

[.small]#xref:BloombergLP/balb/ControlManager/dispatchMessage-02.adoc[_» more&period;&period;&period;_]#

Dispatch the message in the specified stream for the specified prefix&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/balb/ControlManager/dispatchMessage-08.adoc[dispatchMessage](
    xref:bsl/string.adoc[bsl::string] const& prefix,
    std::istream& stream) const;
----

[.small]#xref:BloombergLP/balb/ControlManager/dispatchMessage-08.adoc[_» more&period;&period;&period;_]#

== Return Value

0 on success, or a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *message*
| complete control message to parse and dispatch
| *prefix*
| case&hyphen;insensitive message prefix selecting the callback
| *stream*
| input stream containing the remainder of the message
|===


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