mirror of
https://github.com/php-win-ext/grpc.git
synced 2026-03-25 17:42:16 +01:00
Fix https://github.com/grpc/grpc/issues/36367. <!-- If you know who should review your pull request, please assign it to that person, otherwise the pull request would get assigned randomly. If your pull request is for a specific language, please add the appropriate lang label. --> Closes #36382 COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36382 from yijiem:fix-example-cmake 54521e87a1e04496642423bfa8b6586063d848b6 PiperOrigin-RevId: 625469934
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.