GRPC C++
1.30.0
|
An interface that yields a sequence of messages of type R. More...
#include <sync_stream_impl.h>
Public Member Functions | |
virtual | ~ReaderInterface () |
virtual bool | NextMessageSize (uint32_t *sz)=0 |
Get an upper bound on the next message size available for reading on this stream. More... | |
virtual bool | Read (R *msg)=0 |
Block to read a message and parse to msg. More... | |
An interface that yields a sequence of messages of type R.
|
inlinevirtual |
|
pure virtual |
Get an upper bound on the next message size available for reading on this stream.
Implemented in grpc_impl::ServerSplitStreamer< RequestType, ResponseType >, grpc_impl::ServerUnaryStreamer< RequestType, ResponseType >, grpc_impl::ServerReaderWriter< W, R >, grpc_impl::ServerReader< R >, grpc_impl::ClientReaderWriter< W, R >, and grpc_impl::ClientReader< R >.
|
pure virtual |
Block to read a message and parse to msg.
Returns true on success. This is thread-safe with respect to Write or \WritesDone methods on the same stream. It should not be called concurrently with another Read on the same stream as the order of delivery will not be defined.
[out] | msg | The read message. |
Implemented in grpc_impl::ServerSplitStreamer< RequestType, ResponseType >, grpc_impl::ServerUnaryStreamer< RequestType, ResponseType >, grpc_impl::ServerReaderWriter< W, R >, grpc_impl::ServerReader< R >, grpc_impl::ClientReaderWriter< W, R >, and grpc_impl::ClientReader< R >.