This was just an afternoon experiment to better understand how communication between threads works in C using signals and a shared memory queue.
To build the project, you need to have gcc
installed.
gcc -pthread -o udping main.c queue.c ping.c listen.c
The project can also be built using the provided Makefile
which requires
make
to be installed. You can build the project using:
make
Start the listener:
./udping listen
Start the pinger:
./udping ping