#include <forwarding_channel.h>
Public Member Functions | |
constexpr | ForwardingChannelPair (multibuf::MultiBufAllocator &first_write_alloc, multibuf::MultiBufAllocator &second_write_alloc) |
ForwardingChannelPair (const ForwardingChannelPair &)=delete | |
ForwardingChannelPair & | operator= (const ForwardingChannelPair &)=delete |
ForwardingChannelPair (ForwardingChannelPair &&)=delete | |
ForwardingChannelPair & | operator= (ForwardingChannelPair &&)=delete |
Channel< kType, kReliable, kReadable, kWritable > & | first () |
Returns the first channel in the pair. | |
const Channel< kType, kReliable, kReadable, kWritable > & | first () const |
Returns a const reference to the first channel in the pair. | |
Channel< kType, kReliable, kReadable, kWritable > & | second () |
Returns the second channel in the pair. | |
const Channel< kType, kReliable, kReadable, kWritable > & | second () const |
Returns a const reference to the second channel in the pair. | |
Friends | |
template<DataType > | |
class | internal::ForwardingChannel |
Forwards either datagrams or bytes between two channels. Writes to the first channel appear as reads on the second, and vice versa.
ForwardingChannelPair
enables connecting two subsystems that communicate with channels without implementing a custom channel.