Go to the documentation of this file.
19 #include "examples/protos/helloworld.grpc.pb.h"
42 return reply.message();
44 std::cout <<
status.error_code() <<
": " <<
status.error_message()
50 std::unique_ptr<Greeter::Stub>
stub_;
53 int main(
int argc,
char** argv) {
54 std::string target_str(
"unix-abstract:grpc%00abstract");
58 std::cout <<
"Sending '" << user <<
"' to " << target_str <<
" ... ";
60 std::cout <<
"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.
std::unique_ptr< Greeter::Stub > stub_
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:54