A simple chat client using sockets