Send the specified message to the pipe with the specified pipeName.
Synopsis
Declared in <bdls_pipeutil.h>
static
int
send(
std::string_view const& pipeName,
std::string_view const& message);
Description
Send the specified message to the pipe with the specified UTF‐8 pipeName. Return 0 on success, and a nonzero value otherwise. message is output in a single write operation; consequently, messages that do not exceed the PIPE_BUF value (see []Atomicity) will not be interleaved even when multiple concurrent processes are writing to pipeName. The behavior is undefined unless pipeName is a valid UTF‐8 string.
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
pipeName |
UTF‐8 name of the pipe to write to |
message |
message to send to the pipe |
Created with MrDocs