GRPC C++  1.4.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions
grpc::ClientAsyncResponseReader< R > Class Template Referencefinal

Async API for client-side unary RPCs, where the message response received from the server is of type R. More...

#include <async_unary_call.h>

Public Member Functions

void ReadInitialMetadata (void *tag)
 See ClientAsyncResponseReaderInterface::ReadInitialMetadata for semantics. More...
 
void Finish (R *msg, Status *status, void *tag)
 See ClientAysncResponseReaderInterface::Finish for semantics. More...
 
- Public Member Functions inherited from grpc::ClientAsyncResponseReaderInterface< R >
virtual ~ClientAsyncResponseReaderInterface ()
 

Static Public Member Functions

template<class W >
static ClientAsyncResponseReaderCreate (ChannelInterface *channel, CompletionQueue *cq, const RpcMethod &method, ClientContext *context, const W &request)
 Start a call and write the request out. More...
 
static void operator delete (void *ptr, std::size_t size)
 

Detailed Description

template<class R>
class grpc::ClientAsyncResponseReader< R >

Async API for client-side unary RPCs, where the message response received from the server is of type R.

Member Function Documentation

template<class R >
template<class W >
static ClientAsyncResponseReader* grpc::ClientAsyncResponseReader< R >::Create ( ChannelInterface channel,
CompletionQueue cq,
const RpcMethod method,
ClientContext context,
const W &  request 
)
inlinestatic

Start a call and write the request out.

tag will be notified on cq when the call has been started (i.e. intitial metadata sent) and request has been written out. Note that context will be used to fill in custom initial metadata used to send to the server when starting the call.

template<class R >
void grpc::ClientAsyncResponseReader< R >::Finish ( R *  msg,
Status status,
void *  tag 
)
inlinevirtual

See ClientAysncResponseReaderInterface::Finish for semantics.

Side effect:

  • the ClientContext associated with this call is updated with possible initial and trailing metadata sent from the server.

Implements grpc::ClientAsyncResponseReaderInterface< R >.

template<class R >
static void grpc::ClientAsyncResponseReader< R >::operator delete ( void *  ptr,
std::size_t  size 
)
inlinestatic
template<class R >
void grpc::ClientAsyncResponseReader< R >::ReadInitialMetadata ( void *  tag)
inlinevirtual

See ClientAsyncResponseReaderInterface::ReadInitialMetadata for semantics.

Side effect:

  • the ClientContext associated with this call is updated with possible initial and trailing metadata sent from the serve.

Implements grpc::ClientAsyncResponseReaderInterface< R >.


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