#include <userver/engine/io/common.hpp>
Interface for readable and writable streams
Definition at line 98 of file common.hpp.
Public Member Functions | |
ReadableBase & | GetReadableBase () |
WritableBase & | GetWritableBase () |
Public Member Functions inherited from engine::io::ReadableBase | |
virtual bool | IsValid () const =0 |
Whether the stream is valid. | |
virtual bool | WaitReadable (Deadline)=0 |
Suspends current task until the stream has data available. | |
virtual size_t | ReadSome (void *buf, size_t len, Deadline deadline)=0 |
Receives at least one byte from the stream. | |
virtual size_t | ReadAll (void *buf, size_t len, Deadline deadline)=0 |
impl::ContextAccessor * | TryGetContextAccessor () |
For internal use only. | |
Public Member Functions inherited from engine::io::WritableBase | |
virtual bool | WaitWriteable (Deadline deadline)=0 |
Suspends current task until the data is available. | |
virtual size_t | WriteAll (const void *buf, size_t len, Deadline deadline)=0 |
Sends exactly len bytes of buf. | |
virtual size_t | WriteAll (std::initializer_list< IoData > list, Deadline deadline) |
impl::ContextAccessor * | TryGetContextAccessor () |
For internal use only. | |
Additional Inherited Members | |
Protected Member Functions inherited from engine::io::ReadableBase | |
void | SetReadableContextAccessor (impl::ContextAccessor *ca) |
Protected Member Functions inherited from engine::io::WritableBase | |
void | SetWritableContextAccessor (impl::ContextAccessor *ca) |
|
inline |
Definition at line 102 of file common.hpp.
|
inline |
Definition at line 104 of file common.hpp.