Client-server chat application in C