The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#) https://grpc.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Mark D. Roth 55b1ae9700 [build] replace grpc_proto_library rules with separate proto_library/cc_proto_library/cc_grpc_library rules (#37943) 4 weeks ago
..
BUILD [build] replace grpc_proto_library rules with separate proto_library/cc_proto_library/cc_grpc_library rules (#37943) 4 weeks ago
CMakeLists.txt [Build] Bumped the minimum version of cmake (#37702) 2 months ago
README.md
greeter_client.cc [clang-format] Remove custom clang-format rules for include ordering (#37820) 2 months ago
greeter_server.cc [clang-format] Remove custom clang-format rules for include ordering (#37820) 2 months ago

README.md

Error Details Example

Overview

This example shows you how to return error with details from the server and how to handle it on the client.

Try it!

Once you have working gRPC, you can build this example using either bazel or cmake.

Run the server, which will listen on port 50051:

$ ./greeter_server

Run the client (in a different terminal):

$ ./greeter_client

If things go smoothly, you will see the client output:

### Send: SayHello(name=World)
Ok. ReplyMessage=Hello World
### Send: SayHello(name=World)
Failed. Code=8 Message=Request limit exceeded
Details:
- Quota: subject=name: World description=Limit one greeting per person