mirror of
https://github.com/php-win-ext/grpc.git
synced 2026-03-24 09:02:15 +01:00
gRPC is currently getting formatted with two different clang-format implementations, and due to some weirdness they have different include file orderings. This change introduces clang-format configuration to ensure that the two systems align - it's *highly* expected that this will need some maintenance going forward as the two systems evolve. Closes #40905 PiperOrigin-RevId: 819606209
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