Files
Craig Tiller 339906443b [clang-format] Match include file ordering to internal clang-format (#40905)
gRPC is currently getting formatted with two different clang-format implementations, and due to some weirdness they have different include file orderings. This change introduces clang-format configuration to ensure that the two systems align - it's *highly* expected that this will need some maintenance going forward as the two systems evolve.

Closes #40905

PiperOrigin-RevId: 819606209
2025-10-15 00:24:11 -07:00
..
2025-03-27 18:49:43 -07:00
2024-10-10 15:37:18 -07:00

gRPC Unix Abstract Socket Example

This example shows how to use gRPC with Unix domain sockets in the abstract namespace. gRPC uses the unix-abstract:abstract_path URI scheme to support this. In this example, a socket with an embedded null character grpc%00abstract is created.

Build and run the example

Run bazel run :server in one terminal, and bazel run :client in another.

The client and server will confirm that a message was sent and received on both ends. The server will continue running until it is shut down. While the server is still running, you can confirm that a unix domain socket is in use by running lsof -U | grep '@grpc@abstract'.