Go to the documentation of this file.
23 #include "absl/flags/flag.h"
24 #include "absl/flags/parse.h"
29 #include "examples/protos/helloworld.grpc.pb.h"
31 #include "helloworld.grpc.pb.h"
35 ABSL_FLAG(
bool, secure,
true,
"Secure mode");
68 return reply.message();
70 std::cout <<
status.error_code() <<
": " <<
status.error_message()
77 std::unique_ptr<Greeter::Stub>
stub_;
80 int main(
int argc,
char** argv) {
89 std::cout <<
"Greeter received: " << reply << std::endl;
std::vector< char * > ParseCommandLine(int argc, char *argv[])
std::shared_ptr< ChannelCredentials > XdsCredentials(const std::shared_ptr< ChannelCredentials > &fallback_creds)
ABSL_FLAG(std::string, target, "xds:///helloworld:50051", "Target string")
wrapped_grpc_channel * channel
int main(int argc, char **argv)
ABSL_MUST_USE_RESULT T GetFlag(const absl::Flag< T > &flag)
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 03:00:58