• Home
Name Date Size #Lines LOC

..--

BUILDD22-Oct-20252.2 KiB9285

CMakeLists.txtD22-Oct-20252.7 KiB9079

MakefileD22-Oct-20254.6 KiB12284

README.mdD22-Oct-2025767 2617

helper.ccD22-Oct-20254.3 KiB158119

helper.hD22-Oct-2025978 3510

route_guide_callback_client.ccD22-Oct-202511.5 KiB365319

route_guide_callback_server.ccD22-Oct-202510.9 KiB336262

route_guide_client.ccD22-Oct-20257.6 KiB239195

route_guide_db.jsonD22-Oct-202513.4 KiB602601

route_guide_server.ccD22-Oct-20255.9 KiB193151

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```