super("ReaderThread"); this.asr = asr;
AsyncReadSocket asr = new AsyncReadSocket("myhost", 6001); asr.start(); new TestRead(asr).start();
// do some other processing, and allow asr to read data System.out.println("Data is " + asr.getResult());