Create a pipe control mechanism that dispatches to the given callback.

Synopsis

Declared in <balb_pipecontrolchannel.h>

explicit
PipeControlChannel(
    ControlCallback const& callback,
    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

Name

Description

callback

functor invoked for each control message

basicAllocator

memory allocator; null uses the default

Created with MrDocs