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

Async client-side API for doing server-streaming RPCs, where the incoming message stream coming from the server has messages of type R. More...

#include <client_context.h>

Public Member Functions

void StartCall (void *tag) override
 
void ReadInitialMetadata (void *tag) override
 See the ClientAsyncStreamingInterface.ReadInitialMetadata method for semantics. More...
 
void Read (R *msg, void *tag) override
 
void Finish (grpc::Status *status, void *tag) override
 See the ClientAsyncStreamingInterface.Finish method for semantics. More...
 

Static Public Member Functions

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

Friends

class internal::ClientAsyncReaderFactory< R >
 

Detailed Description

template<class R>
class grpc::ClientAsyncReader< R >

Async client-side API for doing server-streaming RPCs, where the incoming message stream coming from the server has messages of type R.

Member Function Documentation

◆ Finish()

template<class R >
void grpc::ClientAsyncReader< R >::Finish ( grpc::Status status,
void *  tag 
)
inlineoverride

See the ClientAsyncStreamingInterface.Finish method for semantics.

Side effect:

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

◆ operator delete() [1/2]

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

◆ operator delete() [2/2]

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

◆ Read()

template<class R >
void grpc::ClientAsyncReader< R >::Read ( R *  msg,
void *  tag 
)
inlineoverride

◆ ReadInitialMetadata()

template<class R >
void grpc::ClientAsyncReader< R >::ReadInitialMetadata ( void *  tag)
inlineoverride

See the ClientAsyncStreamingInterface.ReadInitialMetadata method for semantics.

Side effect:

  • upon receiving initial metadata from the server, the ClientContext associated with this call is updated, and the calling code can access the received metadata through the ClientContext.

◆ StartCall()

template<class R >
void grpc::ClientAsyncReader< R >::StartCall ( void *  tag)
inlineoverride

Friends And Related Function Documentation

◆ internal::ClientAsyncReaderFactory< R >

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

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