aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpcpp/generic
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2018-11-04 23:37:00 -0800
committerGravatar Vijay Pai <vpai@google.com>2018-11-30 04:13:40 -0800
commitd7eb26648d33912199573b842557b0e92ec3071f (patch)
tree42ef1a1d37c512a7baa044b33e5d83f05aa1fab2 /include/grpcpp/generic
parent7ef8fc826c52b0c4abeaead633d464197fc0bdf8 (diff)
Client callback streaming
Diffstat (limited to 'include/grpcpp/generic')
-rw-r--r--include/grpcpp/generic/generic_stub.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/grpcpp/generic/generic_stub.h b/include/grpcpp/generic/generic_stub.h
index d509d9a520..ccbf8a0e55 100644
--- a/include/grpcpp/generic/generic_stub.h
+++ b/include/grpcpp/generic/generic_stub.h
@@ -24,6 +24,7 @@
#include <grpcpp/support/async_stream.h>
#include <grpcpp/support/async_unary_call.h>
#include <grpcpp/support/byte_buffer.h>
+#include <grpcpp/support/client_callback.h>
#include <grpcpp/support/status.h>
namespace grpc {
@@ -76,6 +77,10 @@ class GenericStub final {
const ByteBuffer* request, ByteBuffer* response,
std::function<void(Status)> on_completion);
+ experimental::ClientCallbackReaderWriter<ByteBuffer, ByteBuffer>*
+ PrepareBidiStreamingCall(ClientContext* context, const grpc::string& method,
+ experimental::ClientBidiReactor* reactor);
+
private:
GenericStub* stub_;
};