basilar chat written in C with sockets