template <class R>

class ReaderInterface

Defined at line 84 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/sync_stream.h

An interface that yields a sequence of messages of type

Public Methods

bool NextMessageSize (uint32_t * sz)

Get an upper bound on the next message size available for reading on this

stream.

bool Read (R * msg)

Block to read a message and parse to

Returns

on success.

This is thread-safe with respect to

or

methods on

the same stream. It should not be called concurrently with another

on the same stream as the order of delivery will not be defined.

Parameters

msg [out] The read message.

Returns

when there will be no more incoming messages, either

because the other side has called

or the stream has failed

(or been cancelled).

void ~ReaderInterface<R> ()

Defined at line 86 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/sync_stream.h