#include <userver/engine/io/common.hpp>
Interface for readable and writable streams
Definition at line 110 of file common.hpp.
◆ GetReadableBase()
◆ GetWritableBase()
◆ IsValid()
virtual bool engine::io::ReadableBase::IsValid |
( |
| ) |
const |
|
pure virtualinherited |
◆ ReadAll()
virtual size_t engine::io::ReadableBase::ReadAll |
( |
void * | buf, |
|
|
size_t | len, |
|
|
Deadline | deadline ) |
|
pure virtualinherited |
◆ ReadNoblock()
virtual std::optional< size_t > engine::io::ReadableBase::ReadNoblock |
( |
void * | buf, |
|
|
size_t | len ) |
|
inlinevirtualinherited |
Receives up to len (including zero) bytes from the stream.
- Returns
- filled-in optional on data presence (e.g. 0, 1, 2... bytes) empty optional otherwise
Reimplemented in engine::io::Socket.
Definition at line 39 of file common.hpp.
◆ ReadSome()
virtual size_t engine::io::ReadableBase::ReadSome |
( |
void * | buf, |
|
|
size_t | len, |
|
|
Deadline | deadline ) |
|
pure virtualinherited |
◆ SetReadableContextAccessor()
void engine::io::ReadableBase::SetReadableContextAccessor |
( |
impl::ContextAccessor * | ca | ) |
|
|
inlineprotectedinherited |
◆ SetWritableContextAccessor()
void engine::io::WritableBase::SetWritableContextAccessor |
( |
impl::ContextAccessor * | ca | ) |
|
|
inlineprotectedinherited |
◆ TryGetContextAccessor() [1/2]
impl::ContextAccessor * engine::io::ReadableBase::TryGetContextAccessor |
( |
| ) |
|
|
inlineinherited |
For internal use only.
Definition at line 57 of file common.hpp.
◆ TryGetContextAccessor() [2/2]
impl::ContextAccessor * engine::io::WritableBase::TryGetContextAccessor |
( |
| ) |
|
|
inlineinherited |
For internal use only.
Definition at line 97 of file common.hpp.
◆ WaitReadable()
virtual bool engine::io::ReadableBase::WaitReadable |
( |
Deadline | | ) |
|
|
pure virtualinherited |
◆ WaitWriteable()
virtual bool engine::io::WritableBase::WaitWriteable |
( |
Deadline | deadline | ) |
|
|
pure virtualinherited |
◆ WriteAll() [1/2]
virtual size_t engine::io::WritableBase::WriteAll |
( |
const void * | buf, |
|
|
size_t | len, |
|
|
Deadline | deadline ) |
|
pure virtualinherited |
◆ WriteAll() [2/2]
virtual size_t engine::io::WritableBase::WriteAll |
( |
std::initializer_list< IoData > | list, |
|
|
Deadline | deadline ) |
|
inlinevirtualinherited |
The documentation for this class was generated from the following file: