A simple socket chat in C