[#BloombergLP-bdls-PipeUtil-send]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/PipeUtil.adoc[PipeUtil]::send
:relfileprefix: ../../../
:mrdocs:

Send the specified `message` to the pipe with the specified `pipeName`&period;

== Synopsis

Declared in `&lt;bdls&lowbar;pipeutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
send(
    std::string&lowbar;view const& pipeName,
    std::string&lowbar;view const& message);
----

== Description

Send the specified `message` to the pipe with the specified UTF&hyphen;8 `pipeName`&period; Return 0 on success, and a nonzero value otherwise&period; `message` is output in a single `write` operation&semi; consequently, messages that do not exceed the `PIPE&lowbar;BUF` value (see &lsqb;&rsqb;Atomicity) will not be interleaved even when multiple concurrent processes are writing to `pipeName`&period; The behavior is undefined unless `pipeName` is a valid UTF&hyphen;8 string&period;

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pipeName*
| UTF&hyphen;8 name of the pipe to write to
| *message*
| message to send to the pipe
|===


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