Go to the documentation of this file.
27 #include "examples/protos/helloworld.grpc.pb.h"
29 #include "helloworld.grpc.pb.h"
71 std::unique_ptr<ClientAsyncResponseReader<HelloReply> > rpc(
80 rpc->Finish(&reply, &
status, (
void*)1);
97 return reply.message();
106 std::unique_ptr<Greeter::Stub>
stub_;
109 int main(
int argc,
char** argv) {
118 std::cout <<
"Greeter received: " << reply << std::endl;
int main(int argc, char **argv)
wrapped_grpc_channel * channel
GreeterClient(std::shared_ptr< Channel > channel)
std::shared_ptr< Channel > CreateChannel(const grpc::string &target, const std::shared_ptr< ChannelCredentials > &creds)
std::string SayHello(const std::string &user)
GRPC_CUSTOM_UTIL_STATUS Status
ABSL_MUST_USE_RESULT bool ok() const
grpc::ClientContext context
std::shared_ptr< ChannelCredentials > InsecureChannelCredentials()
Credentials for an unencrypted, unauthenticated channel.
static grpc_completion_queue * cq
std::unique_ptr< Greeter::Stub > stub_
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:44