The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#) https://grpc.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Craig Tiller dbb5164ac7 [clang-format] Remove custom clang-format rules for include ordering (#37820) 2 months ago
..
BUILD [Example] Update route_guide example (#36930) 5 months ago
CMakeLists.txt [Build] Bumped the minimum version of cmake (#37702) 2 months ago
Makefile [Example] Update route_guide example (#36930) 5 months ago
README.md [Example] Update route_guide example (#36930) 5 months ago
helper.cc [Example] Update route_guide example (#36930) 5 months ago
helper.h clang-format C++ examples (#25764) 4 years ago
route_guide_callback_client.cc [clang-format] Remove custom clang-format rules for include ordering (#37820) 2 months ago
route_guide_callback_server.cc [clang-format] Remove custom clang-format rules for include ordering (#37820) 2 months ago
route_guide_client.cc [clang-format] Remove custom clang-format rules for include ordering (#37820) 2 months ago
route_guide_db.json move examples to correct locations 9 years ago
route_guide_server.cc [clang-format] Remove custom clang-format rules for include ordering (#37820) 2 months ago

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