Update the Sockets Program by Java