PacketChannel
that optionally supports reading and writing. Generally, prefer PacketChannel
, which expresses readability and writability in the type.
Public Types | |
using | Packet = T |
Public Member Functions | |
constexpr bool | readable () const |
Returns whether the channel implementation is readable. | |
constexpr bool | writable () const |
Returns whether the channel implementation is writable. | |
constexpr bool | is_read_open () const |
constexpr bool | is_write_open () const |
constexpr bool | is_read_or_write_open () const |
True if the channel is open for either reading or writing. | |
async2::PollResult< Packet > | PendRead (async2::Context &cx) |
async2::PollResult< PendingWrite< Packet > > | PendReadyToWrite (async2::Context &cx, size_t num=1) |
async2::Poll | PendWrite (async2::Context &cx) |
void | SetAvailableWrites (uint16_t available_writes) |
void | AcknowledgeWrites (uint16_t num_completed) |
async2::Poll< Status > | PendClose (async2::Context &cx) |
Protected Member Functions | |
uint16_t | GetAvailableWrites () const |
void | set_read_closed () |
void | set_write_closed () |
void | set_read_write_closed () |
async2::Waker & | write_waker () |
Allows implementations to access the write waker. | |
Friends | |
template<typename , Property... > | |
class | PacketChannel |
template<typename , Property... > | |
class | internal::BasePacketChannelImpl |