Writing end of an unidirectional pipe. More...
#include <userver/engine/io/pipe.hpp>
Public Member Functions | |
bool | IsValid () const |
Whether the writing end of the pipe is valid. | |
bool | WaitWriteable (Deadline) override |
Suspends current task until the pipe can accept more data. | |
size_t | WriteAll (const void *buf, size_t len, Deadline deadline) override |
int | Fd () const |
File descriptor corresponding to the write end of the pipe. | |
int | Release () noexcept |
Releases writing end file descriptor and invalidates it. | |
void | Close () |
Public Member Functions inherited from engine::io::WritableBase | |
virtual size_t | WriteAll (std::initializer_list< IoData > list, Deadline deadline) |
Friends | |
class | Pipe |
void engine::io::PipeWriter::Close | ( | ) |
Closes and invalidates the writing end of the pipe.
|
overridevirtual |
Suspends current task until the pipe can accept more data.
Implements engine::io::WritableBase.
|
overridevirtual |
Sends exactly len bytes to the pipe.
Implements engine::io::WritableBase.