A duplex datagram channel that models the lifetime of a connection-oriented channel. Closing or destroying Channel will close the underlying channel.
Public Types | |
| using | Ptr = internal::RaiiPtr< Channel, &Channel::Release > |
Public Member Functions | |
| virtual uint16_t | max_transmit_size ()=0 |
| Maximum payload size (SDU) that the peer supports receiving. | |
| virtual uint16_t | max_receive_size ()=0 |
| Maximum payload size (SDU) that this channel supports receiving. | |
Public Member Functions inherited from pw::channel::Channel< kDataType, kProperties > | |
| 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 reading or writing. | |
| async2::PollResult< multibuf::MultiBuf > | PendRead (async2::Context &cx) |
| async2::Poll< Status > | PendReadyToWrite (pw::async2::Context &cx) |
| async2::PollOptional< multibuf::MultiBuf > | PendAllocateWriteBuffer (async2::Context &cx, size_t min_bytes) |
| Status | StageWrite (multibuf::MultiBuf &&data) |
| async2::Poll< Status > | PendWrite (async2::Context &cx) |
| async2::Poll< pw::Status > | PendClose (async2::Context &cx) |
| template<typename Sibling , typename = internal::EnableIfConversionIsValid<Channel, Sibling>> | |
| constexpr | operator Sibling & () |
| Channels may be implicitly converted to other compatible channel types. | |
| template<typename Sibling , typename = internal::EnableIfConversionIsValid<Channel, Sibling>> | |
| constexpr | operator const Sibling & () const |
| template<typename Sibling > | |
| Sibling & | as () |
| Returns a reference to this channel as another compatible channel type. | |
| template<typename Sibling > | |
| const Sibling & | as () const |
| template<Property... kOtherChannelProperties> | |
| auto & | as () |
| template<Property... kOtherChannelProperties> | |
| const auto & | as () const |
| Channel< DataType::kByte, kProperties... > & | IgnoreDatagramBoundaries () |
| const Channel< DataType::kByte, kProperties... > & | IgnoreDatagramBoundaries () const |
Additional Inherited Members | |
Static Public Member Functions inherited from pw::channel::Channel< kDataType, kProperties > | |
| static constexpr DataType | data_type () |
| Returns the data type of this channel. | |
| static constexpr bool | reliable () |
| Returns whether the channel type is reliable. | |
| static constexpr bool | seekable () |
| Returns whether the channel type is seekable. | |
| static constexpr bool | readable () |
| Returns whether the channel type is readable. | |
| static constexpr bool | writable () |
| Returns whether the channel type is writable. | |