Name Date Size #Lines LOC

..--

BUILDH A D25-Apr-20251.3 KiB4238

CMakeLists.txtH A D25-Apr-20252.3 KiB7162

README.mdH A D25-Apr-20251 KiB2818

greeter_callback_client.ccH A D25-Apr-20253.8 KiB12273

greeter_callback_server.ccH A D25-Apr-20253.6 KiB10159

README.md

1# gRPC C++ Keepalive Example
2
3The keepalive example builds on the [Hello World Example](https://github.com/grpc/grpc/tree/master/examples/cpp/helloworld) and changes the gRPC client and server to show a sample way of configuring keepalive pings on the client and on the server.
4
5For more information on keepalive pings in gRPC, please refer to -
6* [keepalive guide](https://github.com/grpc/grpc/blob/master/doc/keepalive.md)
7* [A8: Client-side Keepalive](https://github.com/grpc/proposal/blob/master/A8-client-side-keepalive.md)
8* [A9: Server-side Connection Management](https://github.com/grpc/proposal/blob/master/A9-server-side-conn-mgt.md)
9
10## Running the example
11
12To run the server -
13
14```
15$ tools/bazel run examples/cpp/keepalive:greeter_callback_server
16```
17
18To run the client -
19
20```
21$ tools/bazel run examples/cpp/keepalive:greeter_callback_client
22```
23
24You can find a complete set of instructions for building gRPC and running the
25Hello World app in the [C++ Quick Start][].
26
27[C++ Quick Start]: https://grpc.io/docs/languages/cpp/quickstart
28