Hello everyone,
I have a bidi async streaming API. I am not able to figure out what
constructor I need to use for my channel and stub.
I have the following code for my channel and stub and the error I am facing
for using the ClientAsyncReaderWriter. Can you please advise?
AlarmsClient(std::shared_ptr<Channel> channel)
: stub_(AlarmsService::NewStub(channel)) {}
std::unique_ptr<grpc::ClientAsyncReaderWriter<Alarms::AlarmsMessage,
Alarms::AlarmsResponse>> stream(
stub_->AsyncSendAlarms(&context, &cq, got_tag_read));
*alarms_asyncStream_client.cc:* In constructor ‘
*AlarmsClient::AlarmsClient(std::shared_ptr<grpc::Channel>)*’:
*alarms_asyncStream_client.cc:55:46:* *error: *no matching function for
call to ‘*grpc::ClientAsyncReaderWriter<Alarms::AlarmsMessage,
Alarms::AlarmsResponse>::ClientAsyncReaderWriter()*’
: stub_(AlarmsService::NewStub(channel)) {}
* ^*
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/d4f969c9-7f7d-4714-b899-faedab046022%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.