19 #ifndef GRPCPP_GENERIC_GENERIC_STUB_H 20 #define GRPCPP_GENERIC_GENERIC_STUB_H 41 explicit GenericStub(std::shared_ptr<ChannelInterface> channel)
42 : channel_(channel) {}
48 std::unique_ptr<GenericClientAsyncReaderWriter>
PrepareCall(
65 std::unique_ptr<GenericClientAsyncReaderWriter>
Call(
78 std::function<
void(
Status)> on_completion);
94 std::shared_ptr<ChannelInterface> channel_;
99 #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:514
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.
experimental_type(GenericStub *stub)
Definition: generic_stub.h:74
NOTE: class experimental_type is not part of the public API of this class TODO(vjpai): Move these con...
Definition: generic_stub.h:72
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:174
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.
void PrepareBidiStreamingCall(ClientContext *context, const grpc::string &method, experimental::ClientBidiReactor< ByteBuffer, ByteBuffer > *reactor)
ClientAsyncResponseReader< ByteBuffer > GenericClientAsyncResponseReader
Definition: generic_stub.h:35
This header provides an object that reads bytes directly from a grpc::ByteBuffer, via the ZeroCopyInp...
Definition: alarm.h:24
Definition: client_callback.h:98
A thin wrapper around grpc_completion_queue (see src/core/lib/surface/completion_queue.h).
Definition: completion_queue.h:95
experimental_type experimental()
NOTE: The function experimental() is not stable public API.
Definition: generic_stub.h:91
void UnaryCall(ClientContext *context, const grpc::string &method, const ByteBuffer *request, ByteBuffer *response, std::function< void(Status)> on_completion)
Did it work? If it didn't, why?
Definition: status.h:31
ClientAsyncReaderWriter< ByteBuffer, ByteBuffer > GenericClientAsyncReaderWriter
Definition: generic_stub.h:32
Generic stubs provide a type-unsafe interface to call gRPC methods by name.
Definition: generic_stub.h:39
GenericStub(std::shared_ptr< ChannelInterface > channel)
Definition: generic_stub.h:41
A sequence of bytes.
Definition: byte_buffer.h:64
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.