[#BloombergLP-balb-PipeControlChannel-2constructor-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/PipeControlChannel.adoc[PipeControlChannel]::PipeControlChannel :relfileprefix: ../../../ :mrdocs: Create a pipe control mechanism that dispatches to the given callback. == Synopsis Declared in `<balb_pipecontrolchannel.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit PipeControlChannel( xref:BloombergLP/balb/PipeControlChannel/ControlCallback.adoc[ControlCallback] const& callback, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- == Description Create a pipe control mechanism that dispatches messages to the specified `callback`. Optionally specify `basicAllocator` to supply memory. If `basicAllocator` is zero, the currently installed default allocator is used. The permission bit mask of the underlying named pipe defaults to `k_DEFAULT_PERMISSIONS` (0666, i.e., read/write for everyone) and may be changed by calling `setPermissions` before `start`. == Parameters [cols="1,4"] |=== | Name| Description | *callback* | functor invoked for each control message | *basicAllocator* | memory allocator; null uses the default |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#