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

Return whether the named pipe is open for reading&period;

== Synopsis

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

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

== Description

Return `true` if the pipe with the specified UTF&hyphen;8 `pipeName` exists, the calling process has permission to write to it, and some process is able to read the bytes written to it, and `false` otherwise&period; On Windows, this function may block and may write an &quot;empty message&quot;, consisting of a single newline&period; The behavior is undefined unless `pipeName` is a valid UTF&hyphen;8 string&period; Note that even though a process might have the pipe open for reading, this function might still return `false` because there are not sufficient resources available&period;

== Return Value

`true` if the pipe is open for reading, and `false` otherwise

== Parameters

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


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