GRPC C++  0.11.0.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions
grpc::ReaderInterface< R > Class Template Referenceabstract

An interface that yields a sequence of messages of type R. More...

#include <sync_stream.h>

Public Member Functions

virtual ~ReaderInterface ()
 
virtual bool Read (R *msg)=0
 Blocking read a message and parse to msg. More...
 

Detailed Description

template<class R>
class grpc::ReaderInterface< R >

An interface that yields a sequence of messages of type R.

Constructor & Destructor Documentation

template<class R >
virtual grpc::ReaderInterface< R >::~ReaderInterface ( )
inlinevirtual

Member Function Documentation

template<class R >
virtual bool grpc::ReaderInterface< R >::Read ( R *  msg)
pure virtual

Blocking read a message and parse to msg.

Returns true on success.

Parameters
[out]msgThe read message.
Returns
false when there will be no more incoming messages, either because the other side has called WritesDone() or the stream has failed (or been cancelled).

Implemented in grpc::ServerReaderWriter< R, W >, grpc::ServerReader< R >, grpc::ClientReaderWriter< R, W >, and grpc::ClientReader< R >.


The documentation for this class was generated from the following file: