class ClientAsyncResponseReaderHelper
Defined at line 80 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/async_unary_call.h
Public Methods
template <class R, class W, class BaseR = R, class BaseW = W>
ClientAsyncResponseReader<R> * Create (grpc::ChannelInterface * channel, grpc::CompletionQueue * cq, const grpc::internal::RpcMethod & method, grpc::ClientContext * context, const W & request)
Start a call and write the request out if
is set.
will be notified on
when the call has been started (i.e.
initial metadata sent) and
has been written out.
If
is not set, the actual call must be initiated by StartCall
Note that
will be used to fill in custom initial metadata
used to send to the server when starting the call.
Optionally pass in a base class for request and response types so that the
internal functions and structs can be templated based on that, allowing
reuse across RPCs (e.g., MessageLite for protobuf). Since constructors
can't have an explicit template parameter, the last argument is an
extraneous parameter just to provide the needed type information.
Defined at line 95 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/async_unary_call.h
template <class R, class W>
void SetupRequest (grpc_call * call, grpc::internal::CallOpSendInitialMetadata ** single_buf_ptr, std::function<void (ClientContext *, internal::Call *, internal::CallOpSendInitialMetadata *, void *)> * read_initial_metadata, std::function<void (ClientContext *, internal::Call *, bool, internal::CallOpSendInitialMetadata *, internal::CallOpSetInterface **, void *, Status *, void *)> * finish, const W & request)
Various helper functions to reduce templating use
Defined at line 113 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/async_unary_call.h
void StartCall (grpc::ClientContext * context, grpc::internal::CallOpSendInitialMetadata * single_buf)
Defined at line 189 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/async_unary_call.h