Chat client built in C