Files
grpc/examples/cpp/reflection
Yash Tibrewal 95a1de4935 [examples] Initialize logging (#39095)
Closes #39095

PiperOrigin-RevId: 741352357
2025-03-27 18:49:43 -07:00
..
2025-03-27 18:49:43 -07:00
2023-05-17 13:12:10 -07:00

gRPC Reflection Example

This example shows how reflection can be registered on a gRPC server.

Build and run the example

To start the reflection server on its default port of 50051, run the following command from within the examples/cpp/reflection folder:

$ bazel run :reflection_server

There are multiple existing reflection clients you can use to inspect its services.

To use gRPC CLI, see https://github.com/grpc/grpc-go/blob/master/Documentation/server-reflection-tutorial.md#grpc-cli.

To use grpcurl, see https://github.com/fullstorydev/grpcurl.