Your opinion will help to improve our service
Leave a feedback >#include <userver/engine/io/pipe.hpp>
Public Member Functions | |
bool | IsValid () const override |
Whether the reading end of the pipe is valid. | |
bool | WaitReadable (Deadline) override |
Suspends current task until the pipe has data available. | |
size_t | ReadSome (void *buf, size_t len, Deadline deadline) override |
Receives at least one bytes from the pipe. | |
size_t | ReadAll (void *buf, size_t len, Deadline deadline) override |
int | Fd () const |
File descriptor corresponding to the read end of the pipe. | |
int | Release () noexcept |
Releases reading end file descriptor and invalidates it. | |
void | Close () |
virtual std::optional< size_t > | ReadNoblock (void *buf, size_t len) |
impl::ContextAccessor * | TryGetContextAccessor () |
For internal use only. | |
Protected Member Functions | |
void | SetReadableContextAccessor (impl::ContextAccessor *ca) |
void engine::io::PipeReader::Close | ( | ) |
Closes and invalidates the reading end of the pipe.
|
overridevirtual |
Whether the reading end of the pipe is valid.
Implements engine::io::ReadableBase.
|
nodiscardoverridevirtual |
Receives exactly len bytes from the pipe.
Implements engine::io::ReadableBase.
|
inlinenodiscardvirtualinherited |
Receives up to len (including zero) bytes from the stream.
Reimplemented in engine::io::Socket.
Definition at line 40 of file common.hpp.
|
nodiscardoverridevirtual |
Receives at least one bytes from the pipe.
Implements engine::io::ReadableBase.
|
inlineprotectedinherited |
Definition at line 58 of file common.hpp.
|
inlineinherited |
For internal use only.
Definition at line 55 of file common.hpp.
|
nodiscardoverridevirtual |
Suspends current task until the pipe has data available.
Implements engine::io::ReadableBase.