libipc/examples
Philippe Pittoli 76e3144436 Ready for Zig v0.15.2. Details in commit message.
The library jumped to Zig v0.15.2 which implies a new build system.
`build.zig` now compiles libipc as both static and dynamic libraries,
and provides an entry point to use `libipc` as-is for Zig applications.

Some examples have been added to help new users play with the library.

Thanks to these fairly complete examples, two (very small) leaks related
to sentinel values (in arrays containing paths) were fixed.
2025-10-25 16:35:02 +02:00
..
pong-with-c-bindings.zig Ready for Zig v0.15.2. Details in commit message. 2025-10-25 16:35:02 +02:00
pong.zig Ready for Zig v0.15.2. Details in commit message. 2025-10-25 16:35:02 +02:00
pongd-with-c-bindings.zig Ready for Zig v0.15.2. Details in commit message. 2025-10-25 16:35:02 +02:00
pongd.zig Ready for Zig v0.15.2. Details in commit message. 2025-10-25 16:35:02 +02:00
README.md Ready for Zig v0.15.2. Details in commit message. 2025-10-25 16:35:02 +02:00

This directory provides a few examples of libipc usages.

Pong

The pong service is a simple echoing service. A server (named pongd) echoes what is sent to it from a client (pong).

There are two implementations of these applications: one using the C bindings of libipc, one using the library directly. Since the communication protocol is the same (raw libipc messages), any client works with any server.