[#BloombergLP-balb-ControlManager-registerDefaultHandler]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/ControlManager.adoc[ControlManager]::registerDefaultHandler
:relfileprefix: ../../../
:mrdocs:

Register a handler for messages with unregistered prefixes&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
registerDefaultHandler(xref:BloombergLP/balb/ControlManager/ControlHandler.adoc[ControlHandler] const& hander);
----

== Description

Register the specified `handler` to be invoked whenever a control message having an unregistered (case&hyphen;insensitive) `prefix` is received by this control manager&period; Return a positive value if an existing callback was replaced, return 0 if no replacement occurred, and return a negative value otherwise&period;

== Return Value

positive if replaced, 0 if new, negative otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hander*
| callback invoked for messages with unregistered prefixes
|===


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