GRPC C++  1.3.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
grpc::ServerReader< R > Class Template Reference

#include <completion_queue.h>

Public Member Functions

 ServerReader (Call *call, ServerContext *ctx)
 
void SendInitialMetadata () override
 Blocking send initial metadata to client. More...
 
bool NextMessageSize (uint32_t *sz) override
 Upper bound on the next message size available for reading on this stream. More...
 
bool Read (R *msg) override
 Blocking read a message and parse to msg. More...
 
- Public Member Functions inherited from grpc::ServerStreamingInterface
virtual ~ServerStreamingInterface ()
 
- Public Member Functions inherited from grpc::ReaderInterface< R >
virtual ~ReaderInterface ()
 

Constructor & Destructor Documentation

template<class R>
grpc::ServerReader< R >::ServerReader ( Call call,
ServerContext ctx 
)
inline

Member Function Documentation

template<class R>
bool grpc::ServerReader< R >::NextMessageSize ( uint32_t *  sz)
inlineoverridevirtual

Upper bound on the next message size available for reading on this stream.

Implements grpc::ReaderInterface< R >.

template<class R>
bool grpc::ServerReader< R >::Read ( R *  msg)
inlineoverridevirtual

Blocking read a message and parse to msg.

Returns true on success. This is thread-safe with respect to Write or 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.

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).

Implements grpc::ReaderInterface< R >.

template<class R>
void grpc::ServerReader< R >::SendInitialMetadata ( )
inlineoverridevirtual

Blocking send initial metadata to client.

Implements grpc::ServerStreamingInterface.


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