GRPC C++  1.39.1
Public Member Functions | Static Public Member Functions | Friends
grpc::ClientAsyncResponseReader< R > Class Template Reference

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, ::grpc::Status *status, void *tag) override
 See ClientAsyncResponseReaderInterface::Finish for semantics. More...
 
- Public Member Functions inherited from grpc::ClientAsyncResponseReaderInterface< R >
virtual ~ClientAsyncResponseReaderInterface ()
 

Static Public Member Functions

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

Friends

class internal::ClientAsyncResponseReaderHelper
 

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,
::grpc::Status status,
void *  tag 
)
inlineoverridevirtual

See ClientAsyncResponseReaderInterface::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 *  ,
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::ClientAsyncResponseReaderHelper

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

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