Chat server and client written in C