[grpc-io] Re: correct way to cancel a streaming connection attempt in c++

2018-11-25 Thread Prashant Shubham
Hi Michael, Were you able to find any other way to cancel the stream from client side? On Tuesday, May 26, 2015 at 9:58:42 PM UTC+5:30, Michael Larson wrote: > > a tentative answer to my question: > > You can call TryCancel() on the client context from another thread. I > started a "connection

[grpc-io] Re: How to terminate a C++ client

2018-11-05 Thread Prashant Shubham
Have a look at this discussion: https://groups.google.com/forum/#!topic/grpc-io/hahFSzQBN4s . Hope it helps. On Thursday, November 1, 2018 at 8:42:42 AM UTC+5:30, michi@crowdstrike.com wrote: > > I have a C++ client that reads data from a stream using a ClientReader. > The client runs a

[grpc-io] Build a grpc c++ client for receiving response from streaming server

2018-08-31 Thread Prashant Shubham
I am trying to build a `grpc` `rpc` which has stream on server side. The proto is like rpc xyz (abc) return (stream asd){} How to build a C++ client to keep listening on the stream even after the `rpc` returns response once. std::unique_ptr> reader(stub_->xyz(, request)); while

[grpc-io] What is least number of dependencies needed for running a grpc C++ example?

2018-08-27 Thread Prashant Shubham
I wanted to know what is the least number of dependencies needed for grpc. I want reduce the size of grpc example as low as possible. It's reduce by large if use protobuf-lite. How can I just install grpc_cpp_plugin and grpc++, grpc++_reflection without make of the whole grpc repo. -- You

[grpc-io] Re: Do we have any examples to use grpc in C

2018-08-20 Thread Prashant Shubham
Can anyone guide how to write C wrapper class for grpc? On Wednesday, January 27, 2016 at 5:12:53 AM UTC+5:30, yyd...@gmail.com wrote: > > Hi guys, > > How to use grpc in C? > > From thread history, the suggestion is to use C++. Understood this, while > we need to use grpc in C as our

[grpc-io] How to dynamically link grpc

2018-08-17 Thread Prashant Shubham
I am trying to dynamically link the grpc greeting_client example. I am trying to use the libgrpc++.so, libprotobuf.so.10, libgrpc.so.3,libgrpc++_reflection.so.1 files to do the linking. I have added this files to my /usr/lib directory and now I am trying to generate object files for