| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| BUILD | D | 22-Oct-2025 | 2.2 KiB | 92 | 85 | |
| CMakeLists.txt | D | 22-Oct-2025 | 2.7 KiB | 90 | 79 | |
| Makefile | D | 22-Oct-2025 | 4.6 KiB | 122 | 84 | |
| README.md | D | 22-Oct-2025 | 767 | 26 | 17 | |
| helper.cc | D | 22-Oct-2025 | 4.3 KiB | 158 | 119 | |
| helper.h | D | 22-Oct-2025 | 978 | 35 | 10 | |
| route_guide_callback_client.cc | D | 22-Oct-2025 | 11.5 KiB | 365 | 319 | |
| route_guide_callback_server.cc | D | 22-Oct-2025 | 10.9 KiB | 336 | 262 | |
| route_guide_client.cc | D | 22-Oct-2025 | 7.6 KiB | 239 | 195 | |
| route_guide_db.json | D | 22-Oct-2025 | 13.4 KiB | 602 | 601 | |
| route_guide_server.cc | D | 22-Oct-2025 | 5.9 KiB | 193 | 151 |
README.md
1# gRPC Basics: C++ sample code 2 3The files in this folder are the samples used in [gRPC Basics: C++][], 4a detailed tutorial for using gRPC in C++. 5 6[gRPC Basics: C++]:https://grpc.io/docs/languages/cpp/basics 7 8## Configuration 9 10The RouteGuide proto definition is available [here](../../protos/route_guide.proto). 11The server takes the following command-line argument - 12* db_path - Path to json file containing database. Defaults to `examples/cpp/route_guide/route_guide_db.json` on bazel builds, and `route_guide_db.json` for non-bazel builds. 13 14## Running the example 15 16To run the server - 17 18``` 19$ tools/bazel run examples/cpp/route_guide:route_guide_callback_server 20``` 21 22To run the client - 23 24``` 25$ tools/bazel run examples/cpp/route_guide:route_guide_callback_client 26```