Files
Yash Tibrewal 57fb13dfc2 [example] Update RouteGuide example (#36958)
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
2024-06-18 12:18:31 -07:00
..
2021-03-22 10:23:52 -07:00

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