TCP/Client codes modified.