Simple tcp chat using Sockets