errno showing 11 or 22 for createChannel(secure and Insecure) and for SayHello

12 views
Skip to first unread message

toran...@gmail.com

unread,
Jul 31, 2019, 1:27:08 AM7/31/19
to grpc.io

helloworld]# ./greeter_client
Error no 11, error string Resource temporarily unavailableGreeter received: Hello world
helloworld]#
  GreeterClient greeter(grpc::CreateChannel(
      "localhost:50051", grpc::InsecureChannelCredentials()));
  std::string user("world");
  std::string reply = greeter.SayHello(user);
  printf("Error no %d, error string %s", errno, strerror(errno));
  std::cout << "Greeter received: " << reply << std::endl;

Is this expected behavior ?

Lidi Zheng

unread,
Jul 31, 2019, 1:23:04 PM7/31/19
to grpc.io
The message is received. The code you provide didn't show how the "errno" is assigned.
Please refer to https://github.com/grpc/grpc/tree/master/examples/cpp/helloworld to see how to build a gRPC application.

toran...@gmail.com

unread,
Aug 1, 2019, 5:12:05 AM8/1/19
to grpc.io
does the grpc create channel or send will set the errno ?
Reply all
Reply to author
Forward
0 new messages