struct BidiStream
C++
template <typename TIn, typename TOut> struct BidiStream
Both directions of a bidi_stream method: read what the other side
sends, write what you send. Move-only.
include/nprpc/bidi_stream.hpp:16
Constructors
BidiStream<TIn, TOut>(StreamReader<TIn> &&in_reader, StreamWriter<TOut> &&out_writer)
Pairs a reader and a writer for one stream.
include/nprpc/bidi_stream.hpp:23
Fields
StreamReader<TIn> reader
Incoming items.
include/nprpc/bidi_stream.hpp:18
StreamWriter<TOut> writer
Outgoing items.
include/nprpc/bidi_stream.hpp:20