GRPC C++  1.64.0
Static Public Member Functions
grpc::internal::ClientAsyncWriterFactory< W > Class Template Reference

#include <channel_interface.h>

Static Public Member Functions

template<class R >
static ClientAsyncWriter< W > * Create (grpc::ChannelInterface *channel, grpc::CompletionQueue *cq, const grpc::internal::RpcMethod &method, grpc::ClientContext *context, R *response, bool start, void *tag)
 Create a stream object. More...

Member Function Documentation

◆ Create()

template<class W >
template<class R >
static ClientAsyncWriter<W>* grpc::internal::ClientAsyncWriterFactory< W >::Create ( grpc::ChannelInterface channel,
grpc::CompletionQueue cq,
const grpc::internal::RpcMethod method,
grpc::ClientContext context,
R *  response,
bool  start,
void *  tag 

Create a stream object.

Start the RPC if start is set tag will be notified on cq when the call has been started (i.e. initial metadata sent) and request has been written out. If start is not set, tag must be nullptr and the actual call must be initiated by StartCall Note that context will be used to fill in custom initial metadata used to send to the server when starting the call. response will be filled in with the single expected response message from the server upon a successful call to the Finish method of this instance.

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