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

Async API on the client side for doing client-streaming RPCs, where the outgoing message stream going to the server contains messages of type W. 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 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::ClientAsyncWriterFactory< W >
 

Detailed Description

template<class W>
class grpc::ClientAsyncWriter< W >

Async API on the client side for doing client-streaming RPCs, where the outgoing message stream going to the server contains messages of type W.

Member Function Documentation

◆ Finish()

template<class W >
void grpc::ClientAsyncWriter< W >::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.
  • attempts to fill in the response parameter passed to this class's constructor with the server's response message.

◆ operator delete() [1/2]

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

◆ operator delete() [2/2]

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

◆ ReadInitialMetadata()

template<class W >
void grpc::ClientAsyncWriter< W >::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 W >
void grpc::ClientAsyncWriter< W >::StartCall ( void *  tag)
inlineoverride

◆ Write() [1/2]

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

◆ Write() [2/2]

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

◆ WritesDone()

template<class W >
void grpc::ClientAsyncWriter< W >::WritesDone ( void *  tag)
inlineoverride

Friends And Related Function Documentation

◆ internal::ClientAsyncWriterFactory< W >

template<class W >
friend class internal::ClientAsyncWriterFactory< W >
friend

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