libipc-examples/c
2025-10-17 23:39:34 +02:00
..
.gitignore Add git ignore on C binaries. 2023-02-09 13:25:43 +01:00
makefile C examples updated to the latest libipc API. 2025-10-17 23:39:34 +02:00
pong.c C examples updated to the latest libipc API. 2025-10-17 23:39:34 +02:00
pongd.c C examples updated to the latest libipc API. 2025-10-17 23:39:34 +02:00
README.md C examples updated to the latest libipc API. 2025-10-17 23:39:34 +02:00

LibIPC C examples: pong and pongd (simple service and its client, just echoing received messages). Implementations are straightforward.

Build

make

Some options are available, such as static builds.

make STATIC=1 # Build static executables.

Usage

./pongd # run the service
./pong  # run the client

Using pong and pongd as debug tools for libipc

In case you want to use your own version of libipc, first compile your libipc with --release=fast or --release=small optimization flags (as these options remove some zig-related code in the final binary), then you can compile these tools as is:

make STATIC=1 LDFLAGS=/path/to/your/libipc.a

Then you can run the applications with valgrind if you want:

make USE_VALGRIND=1 run-server
make USE_VALGRIND=1 run-client

See the makefiles in ../mk/ for additional options.

LICENSE

ISC