An example of Java Socket programing