A Java network programming example