rlcurrall / rc-udping

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RC UDPing

This was just an afternoon experiment to better understand how communication between threads works in C using signals and a shared memory queue.


Build

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

Usage

Start the listener:

./udping listen

Start the pinger:

./udping ping

About


Languages

Language:C 96.1%Language:Makefile 3.9%