Skip to content

Files

This branch is 546 commits behind grpc/grpc:master.

route_guide

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 23, 2024
Sep 30, 2024
Dec 23, 2024
Jun 17, 2024
Jun 17, 2024
Mar 22, 2021
Oct 4, 2024
Oct 4, 2024
Dec 23, 2024
Aug 27, 2015
Dec 23, 2024

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