tree: f49199032cfdabd2d7db54b92ee1a77ec5d911fa [path history] [tgz]
  1. BUILD
  2. CMakeLists.txt
  3. greeter_callback_client.cc
  4. greeter_callback_server.cc
  5. README.md
examples/cpp/keepalive/README.md

gRPC C++ Keepalive Example

The keepalive example builds on the Hello World Example and changes the gRPC client and server to show a sample way of configuring keepalive pings on the client and on the server.

For more information on keepalive pings in gRPC, please refer to -

Running the example

To run the server -

$ tools/bazel run examples/cpp/keepalive:greeter_callback_server

To run the client -

$ tools/bazel run examples/cpp/keepalive:greeter_callback_client

You can find a complete set of instructions for building gRPC and running the Hello World app in the C++ Quick Start.