Go to the documentation of this file.
   19 #ifndef GRPCPP_IMPL_GENERIC_STUB_INTERNAL_H 
   20 #define GRPCPP_IMPL_GENERIC_STUB_INTERNAL_H 
   33 template <
class RequestType, 
class ResponseType>
 
   34 class TemplatedGenericStub;
 
   35 template <
class RequestType, 
class ResponseType>
 
   36 class TemplatedGenericStubCallback;
 
   43 template <
class RequestType, 
class ResponseType>
 
   47       std::shared_ptr<grpc::ChannelInterface> channel)
 
   48       : channel_(channel) {}
 
   54                  ResponseType* response,
 
   56     UnaryCallInternal(context, method, options, request, response,
 
   57                       std::move(on_completion));
 
   67     PrepareUnaryCallInternal(context, method, options, request, response,
 
   77     PrepareBidiStreamingCallInternal(context, method, options, reactor);
 
   81   template <
class Req, 
class Resp>
 
   83   template <
class Req, 
class Resp>
 
   85   std::shared_ptr<grpc::ChannelInterface> channel_;
 
   87   void UnaryCallInternal(
ClientContext* context, 
const std::string& method,
 
   89                          ResponseType* response,
 
   95         context, request, response, std::move(on_completion));
 
  100                                 const RequestType* request,
 
  101                                 ResponseType* response,
 
  103     internal::ClientCallbackUnaryFactory::Create<RequestType, ResponseType>(
 
  107         context, request, response, reactor);
 
  110   void PrepareBidiStreamingCallInternal(
 
  125 #endif  // GRPCPP_IMPL_GENERIC_STUB_INTERNAL_H 
  
TemplatedGenericStubCallbackInternal(std::shared_ptr< grpc::ChannelInterface > channel)
Definition: generic_stub_internal.h:46
Generic stubs provide a type-unaware interface to call gRPC methods by name.
Definition: generic_stub_internal.h:44
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm.h:33
ClientUnaryReactor is a reactor-style interface for a unary RPC.
Definition: client_callback.h:435
static void Create(grpc::ChannelInterface *channel, const grpc::internal::RpcMethod &method, grpc::ClientContext *context, ClientBidiReactor< Request, Response > *reactor)
Definition: client_callback.h:706
const char * suffix_for_stats() const
Definition: stub_options.h:34
void PrepareBidiStreamingCall(ClientContext *context, const std::string &method, StubOptions options, ClientBidiReactor< RequestType, ResponseType > *reactor)
Setup a call to a named method method using context and tied to reactor .
Definition: generic_stub_internal.h:74
void CallbackUnaryCall(grpc::ChannelInterface *channel, const grpc::internal::RpcMethod &method, grpc::ClientContext *context, const InputMessage *request, OutputMessage *result, std::function< void(grpc::Status)> &&on_completion)
Perform a callback-based unary call.
Definition: client_callback.h:52
Useful interface for generated stubs.
Definition: stub_options.h:25
Did it work? If it didn't, why?
Definition: status.h:34
void UnaryCall(ClientContext *context, const std::string &method, StubOptions options, const RequestType *request, ResponseType *response, std::function< void(grpc::Status)> on_completion)
Setup and start a unary call to a named method method using context and specifying the request and re...
Definition: generic_stub_internal.h:52
@ BIDI_STREAMING
Definition: rpc_method.h:35
A ClientContext allows the person implementing a service client to:
Definition: client_context.h:194
void PrepareUnaryCall(ClientContext *context, const std::string &method, StubOptions options, const RequestType *request, ResponseType *response, ClientUnaryReactor *reactor)
Setup a unary call to a named method method using context and specifying the request and response buf...
Definition: generic_stub_internal.h:64
@ NORMAL_RPC
Definition: rpc_method.h:32
Generic stubs provide a type-unaware interface to call gRPC methods by name.
Definition: generic_stub.h:42
ClientBidiReactor is the interface for a bidirectional streaming RPC.
Definition: client_callback.h:142
Descriptor of an RPC method.
Definition: rpc_method.h:29
Generic stubs provide a type-unaware interface to call gRPC methods by name.
Definition: generic_stub_callback.h:31