To install gRPC on your system, follow the instructions to build from source here. This also installs the protocol buffer compiler
protoc (if you don't have it already), and the C++ gRPC plugin for
The client implementation is at greeter_client.cc.
The server implementation is at greeter_server.cc.
Build client and server:
Run the server, which will listen on port 50051:
Run the client (in a different terminal):
If things go smoothly, you will see the “Greeter received: Hello world” in the client side output.
You can find a more detailed tutorial in gRPC Basics: C++