// If the server receives a request for SayHello() function // the next call to cq_->Next() will return the tag (in this case // the CallData object passed) service_->RequestSayHello(&ctx_, &request_, &responder_, cq_, cq_, this); // Once the operation Finish() is actually complete, the tag // (in this case, the CallData object again) is returned via the // call to cq_->Next() responder_.Finish(reply_, Status::OK, this); |
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
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/23678b27-c97f-4fc7-8239-aa9b67f1bc21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CALRi9Qe4duy671_sVSU%2BJCTznx2-W1YCqCGkYrx_%3DnX8zk1zzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
So for a service that would have more than one method, I would create a new CallData() for each methodis that correct?
Hi Christian,I am assuming you are talking about the Greeter async server in the examples. In this case the 'CallData' struct is not a gRPC structure. It is an application defined structure passed as a 'tag' to YourServiceName::AsyncService::RequestYourMethodName(...) and ServerAsyncResponseWriter<T>::Finish(...) functions.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
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/23678b27-c97f-4fc7-8239-aa9b67f1bc21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
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/CALRi9Qe4duy671_sVSU%2BJCTznx2-W1YCqCGkYrx_%3DnX8zk1zzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.