Simple chat client and service using sockets