19 #ifndef GRPCPP_GENERIC_GENERIC_STUB_H 20 #define GRPCPP_GENERIC_GENERIC_STUB_H 37 explicit GenericStub(std::shared_ptr<ChannelInterface> channel)
38 : channel_(channel) {}
44 std::unique_ptr<GenericClientAsyncReaderWriter>
PrepareCall(
61 std::unique_ptr<GenericClientAsyncReaderWriter>
Call(
66 std::shared_ptr<ChannelInterface> channel_;
71 #endif // GRPCPP_GENERIC_GENERIC_STUB_H Async client-side interface for bi-directional streaming, where the outgoing message stream going to ...
Definition: async_stream.h:491
std::string string
Definition: config.h:35
std::unique_ptr< GenericClientAsyncResponseReader > PrepareUnaryCall(ClientContext *context, const grpc::string &method, const ByteBuffer &request, CompletionQueue *cq)
Setup a unary call to a named method method using context, and don't start it.
Async API for client-side unary RPCs, where the message response received from the server is of type ...
Definition: async_unary_call.h:98
A ClientContext allows the person implementing a service client to:
Definition: client_context.h:162
std::unique_ptr< GenericClientAsyncReaderWriter > Call(ClientContext *context, const grpc::string &method, CompletionQueue *cq, void *tag)
DEPRECATED for multi-threaded use Begin a call to a named method method using context.
ClientAsyncResponseReader< ByteBuffer > GenericClientAsyncResponseReader
Definition: generic_stub.h:31
An Alarm posts the user provided tag to its associated completion queue upon expiry or cancellation...
Definition: alarm.h:31
A thin wrapper around grpc_completion_queue (see src/core/lib/surface/completion_queue.h).
Definition: completion_queue.h:94
ClientAsyncReaderWriter< ByteBuffer, ByteBuffer > GenericClientAsyncReaderWriter
Definition: generic_stub.h:28
Generic stubs provide a type-unsafe interface to call gRPC methods by name.
Definition: generic_stub.h:35
GenericStub(std::shared_ptr< ChannelInterface > channel)
Definition: generic_stub.h:37
A sequence of bytes.
Definition: byte_buffer.h:53
std::unique_ptr< GenericClientAsyncReaderWriter > PrepareCall(ClientContext *context, const grpc::string &method, CompletionQueue *cq)
Setup a call to a named method method using context, but don't start it.