GRPC C++  1.13.0-dev
Public Member Functions | Static Public Member Functions | Friends
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 StartCall () override
 Start the call that was set up by the constructor, but only if the constructor was invoked through the "Prepare" API which doesn't actually start the call. More...
 
void ReadInitialMetadata (void *tag) override
 See ClientAsyncResponseReaderInterface::ReadInitialMetadata for semantics. More...
 
void Finish (R *msg, Status *status, void *tag) override
 See ClientAysncResponseReaderInterface::Finish for semantics. More...
 
- Public Member Functions inherited from grpc::ClientAsyncResponseReaderInterface< R >
virtual ~ClientAsyncResponseReaderInterface ()
 

Static Public Member Functions

static void operator delete (void *ptr, std::size_t size)
 
static void operator delete (void *, void *)
 

Friends

class internal::ClientAsyncResponseReaderFactory< R >
 

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

◆ Finish()

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

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

◆ operator delete() [1/2]

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

◆ operator delete() [2/2]

template<class R >
static void grpc::ClientAsyncResponseReader< R >::operator delete ( void *  ,
void *   
)
inlinestatic

◆ ReadInitialMetadata()

template<class R >
void grpc::ClientAsyncResponseReader< R >::ReadInitialMetadata ( void *  tag)
inlineoverridevirtual

See ClientAsyncResponseReaderInterface::ReadInitialMetadata 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 >.

◆ StartCall()

template<class R >
void grpc::ClientAsyncResponseReader< R >::StartCall ( )
inlineoverridevirtual

Start the call that was set up by the constructor, but only if the constructor was invoked through the "Prepare" API which doesn't actually start the call.

Implements grpc::ClientAsyncResponseReaderInterface< R >.

Friends And Related Function Documentation

◆ internal::ClientAsyncResponseReaderFactory< R >

template<class R >
friend class internal::ClientAsyncResponseReaderFactory< R >
friend

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