FileDocCategorySizeDatePackage
client.javaAPI DocExample489Tue Jan 14 17:35:36 GMT 1997None

client

public class client extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		System.out.println("connecting...");
		Socket s = new Socket("pcpat", 1234);
		new PrintStream( s.getOutputStream() ).println("GET /foo.html");
		DataInputStream bin = new DataInputStream( s.getInputStream() );
		//BufferedRead bin = new BufferedReader( s.getInputStream() );
		String line;
		while ( (line = bin.readLine()) != null )
			System.out.println(line);