mirror of
https://github.com/php-win-ext/grpc.git
synced 2026-03-24 17:12:19 +01:00
Simple change to stop writing if `ok` is false in `OnWriteDone()` Closes #36958 COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36958 from yashykt:UpdateRouteGuideExample cd5b066350a6b479caeb375b2c47cd387fb8f6a6 PiperOrigin-RevId: 644471350
gRPC Basics: C++ sample code
The files in this folder are the samples used in gRPC Basics: C++, a detailed tutorial for using gRPC in C++.
Configuration
The RouteGuide proto definition is available here. The server takes the following command-line argument -
- db_path - Path to json file containing database. Defaults to
examples/cpp/route_guide/route_guide_db.jsonon bazel builds, androute_guide_db.jsonfor non-bazel builds.
Running the example
To run the server -
$ tools/bazel run examples/cpp/route_guide:route_guide_callback_server
To run the client -
$ tools/bazel run examples/cpp/route_guide:route_guide_callback_client