FileDocCategorySizeDatePackage
TestRead.javaAPI DocExample1779Thu Feb 04 16:10:36 GMT 1999None

TestRead

public class TestRead extends Thread

Fields Summary
AsyncReadSocket
asr
Constructors Summary
public TestRead(AsyncReadSocket asr)

		super("ReaderThread");
		this.asr = asr;
	
Methods Summary
public static voidmain(java.lang.String[] args)

		AsyncReadSocket asr = new AsyncReadSocket("myhost", 6001);
		asr.start();
		new TestRead(asr).start();
	
public voidrun()

		// do some other processing, and allow asr to read data
		System.out.println("Data is " + asr.getResult());