Simple chat program in C (using TCP socket connections)