NPRPC docs

class StreamReaderBase

C++

class StreamReaderBase

Type-erased StreamReader, as the runtime stores it.

include/nprpc/stream_base.hpp:36

Methods

virtual void on_chunk_received(flat_buffer fb) = 0

A chunk arrived.

include/nprpc/stream_base.hpp:41

virtual void on_complete() = 0

The producer finished.

include/nprpc/stream_base.hpp:43

virtual void on_error(uint32_t error_code, flat_buffer fb) = 0

The producer failed with error_code; fb holds any exception data.

include/nprpc/stream_base.hpp:45