Files
grpc/examples/cpp/route_guide/README.md
Yash Tibrewal 1071ada87c [Example] Update route_guide example (#36930)
The intention behind this PR is to improve the example to aid the upcoming callback API guide.

Also fixes #25823

Closes #36930

PiperOrigin-RevId: 644166441
2024-06-17 16:20:44 -07:00

767 B

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.json on bazel builds, and route_guide_db.json for 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