BloombergLP::balb::PipeControlChannel::start

Open a named pipe and start a thread to dispatch messages.

Synopsis

Declared in <balb_pipecontrolchannel.h>

int
start(char const* pipeName);

Description

Open a named pipe having the specified pipeName, and start a thread to read messages and dispatch them to the callback specified at construction. Return 0 on success, and a non-zero value otherwise. In particular, return a non-zero value if the pipe cannot be opened or if it is detected that another process is reading from the pipe. pipeName must be of the types const char *, char *, bsl::string, std::string, std::pmr::string (if supported), or bslstl::StringRef.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
pipeNamename of the named pipe to open