tree: 9bc6b52901e457d2dcb616dcf27b88507d8ccb21 [path history] [tgz]
  1. BUILD
  2. CMakeLists.txt
  3. helper.cc
  4. helper.h
  5. Makefile
  6. README.md
  7. route_guide_callback_client.cc
  8. route_guide_callback_server.cc
  9. route_guide_client.cc
  10. route_guide_db.json
  11. route_guide_server.cc
examples/cpp/route_guide/README.md

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