[#BloombergLP-balb-ControlManager-dispatchMessage-08] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/ControlManager.adoc[ControlManager]::dispatchMessage :relfileprefix: ../../../ :mrdocs: Dispatch the message contained in the specified `stream` to the callback associated with the specified `prefix`. Return 0 on success, and a non‐zero value otherwise; in particular return non‐zero if no registered callback could be found for the case‐insensitive `prefix` and no default handler is installed. == Synopsis Declared in `<balb_controlmanager.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int dispatchMessage( xref:bsl/string.adoc[bsl::string] const& prefix, std::istream& stream) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#