BloombergLP::balb::ControlManager::dispatchMessage

Dispatch the message in the specified stream for the specified prefix.

Synopsis

Declared in <balb_controlmanager.h>

int
dispatchMessage(
    bsl::string const& prefix,
    std::istream& stream) const;

Description

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.

Return Value

0 on success, or a non-zero value otherwise

Parameters

NameDescription
prefixcase-insensitive message prefix selecting the callback
streaminput stream containing the remainder of the message