• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1gRPC Reflection Example
2================
3
4This example shows how reflection can be registered on a gRPC server.
5
6### Build and run the example
7
8To start the reflection server on its default port of 50051, run the following command from within the `examples/cpp/reflection` folder:
9
10```
11$ bazel run :reflection_server
12```
13
14There are multiple existing reflection clients you can use to inspect its services.
15
16To use `gRPC CLI`, see https://github.com/grpc/grpc-go/blob/master/Documentation/server-reflection-tutorial.md#grpc-cli.
17
18To use `grpcurl`, see https://github.com/fullstorydev/grpcurl.
19