GRPC C++  1.62.0
Public Member Functions | Static Public Member Functions | Friends
grpc::ClientAsyncReaderWriter< W, R > Class Template Reference

Async client-side interface for bi-directional streaming, where the outgoing message stream going to the server has messages of type W, and 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 of this method. More...
 
void Read (R *msg, void *tag) override
 
void Write (const W &msg, void *tag) override
 
void Write (const W &msg, grpc::WriteOptions options, void *tag) override
 
void WritesDone (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::ClientAsyncReaderWriterFactory< W, R >
 

Detailed Description

template<class W, class R>
class grpc::ClientAsyncReaderWriter< W, R >

Async client-side interface for bi-directional streaming, where the outgoing message stream going to the server has messages of type W, and the incoming message stream coming from the server has messages of type R.

Member Function Documentation

◆ Finish()

template<class W , class R >
void grpc::ClientAsyncReaderWriter< W, 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 sent from the server.

◆ operator delete() [1/2]

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

◆ operator delete() [2/2]

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

◆ Read()

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

◆ ReadInitialMetadata()

template<class W , class R >
void grpc::ClientAsyncReaderWriter< W, R >::ReadInitialMetadata ( void *  tag)
inlineoverride

See the ClientAsyncStreamingInterface.ReadInitialMetadata method for semantics of this method.

Side effect:

  • upon receiving initial metadata from the server, the ClientContext is updated with it, and then the receiving initial metadata can be accessed through this ClientContext.

◆ StartCall()

template<class W , class R >
void grpc::ClientAsyncReaderWriter< W, R >::StartCall ( void *  tag)
inlineoverride

◆ Write() [1/2]

template<class W , class R >
void grpc::ClientAsyncReaderWriter< W, R >::Write ( const W &  msg,
grpc::WriteOptions  options,
void *  tag 
)
inlineoverride

◆ Write() [2/2]

template<class W , class R >
void grpc::ClientAsyncReaderWriter< W, R >::Write ( const W &  msg,
void *  tag 
)
inlineoverride

◆ WritesDone()

template<class W , class R >
void grpc::ClientAsyncReaderWriter< W, R >::WritesDone ( void *  tag)
inlineoverride

Friends And Related Function Documentation

◆ internal::ClientAsyncReaderWriterFactory< W, R >

template<class W , class R >
friend class internal::ClientAsyncReaderWriterFactory< W, R >
friend

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