Very simple chat application implemented in C