FileDocCategorySizeDatePackage
AsyncReadSocket.javaAPI DocExample1939Thu Feb 04 16:10:36 GMT 1999None

AsyncReadSocket

public class AsyncReadSocket extends Thread

Fields Summary
StringBuffer
result
Constructors Summary
public AsyncReadSocket(String host, int port)

		// Open a socket to the given host
	
Methods Summary
public java.lang.StringgetResult()

		String reader = Thread.currentThread().getName();
		if (reader.startsWith("Reader")) {
			String retval = result.toString();
			result = new StringBuffer();
			return retval;
		} else {
			return "";
		}
	
public voidrun()

		// Read data from a socket into the result string buffer