GRPC C++  1.0.0
Public Member Functions
grpc::ServerAsyncReader< W, R > Class Template Reference

#include <async_stream.h>

Public Member Functions

 ServerAsyncReader (ServerContext *ctx)
 
void SendInitialMetadata (void *tag) GRPC_OVERRIDE
 
void Read (R *msg, void *tag) GRPC_OVERRIDE
 Read a message of type R into msg. More...
 
void Finish (const W &msg, const Status &status, void *tag) GRPC_OVERRIDE
 
void FinishWithError (const Status &status, void *tag) GRPC_OVERRIDE
 
- Public Member Functions inherited from grpc::ServerAsyncStreamingInterface
virtual ~ServerAsyncStreamingInterface ()
 
- Public Member Functions inherited from grpc::AsyncReaderInterface< R >
virtual ~AsyncReaderInterface ()
 

Constructor & Destructor Documentation

template<class W , class R >
grpc::ServerAsyncReader< W, R >::ServerAsyncReader ( ServerContext ctx)
inlineexplicit

Member Function Documentation

template<class W , class R >
void grpc::ServerAsyncReader< W, R >::Finish ( const W &  msg,
const Status status,
void *  tag 
)
inlinevirtual
template<class W , class R >
void grpc::ServerAsyncReader< W, R >::FinishWithError ( const Status status,
void *  tag 
)
inlinevirtual
template<class W , class R >
void grpc::ServerAsyncReader< W, R >::Read ( R *  msg,
void *  tag 
)
inlinevirtual

Read a message of type R into msg.

Completion will be notified by tag on the associated completion queue. This is thread-safe with respect to Write or WritesDone methods. It should not be called concurrently with other streaming APIs on the same stream. It is not meaningful to call it concurrently with another Read on the same stream since reads on the same stream are delivered in order.

Parameters
[out]msgWhere to eventually store the read message.
[in]tagThe tag identifying the operation.

Implements grpc::AsyncReaderInterface< R >.

template<class W , class R >
void grpc::ServerAsyncReader< W, R >::SendInitialMetadata ( void *  tag)
inlinevirtual

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