For some reason, despite my including `/grpc/support/client_callback.h` my compiler doesn't know what ::grpc::ClientCallbackBidiReactor or any other class starting with ClientCallback, is. is there some define you need to get these to show up?
On Friday, November 13, 2020 at 1:02:13 PM UTC-5 Donna Dionne wrote: > You can just create an instance like this: > > class TestClientBidiReactor : public ClientBidiReactor<TestRequest, > TestResponse> { > public: > explicit TestClientBidiReactor(Stub* stub, ClientContext& context, ...) > { ...} > > There is StartRead and StartWrite > StartCall will activate the call (so use after Read and Write) > > You can implement OnReadDone, OnWriteDone, and/or OnDone to achieve the > callback behaviour you need. > > ClientCallBackReadWrite you can also create; just watch out that the > streaming objects are not actually implemented in the public API. A > reactor is usually used! > > > > > > On Wednesday, November 4, 2020 at 1:49:30 PM UTC-8 christo...@gmail.com > wrote: > >> I see these classes mentioned in the grpc "docs", but I do not see how to >> get yourself an instance of them when making an RPC call. How do you get >> one? Can I indeed be called back when reads or writes complete? That would >> suit me much better than the ClientReaderWriter interface. > > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/02397e40-6b56-40db-9085-cd97d689d56an%40googlegroups.com.