FileDocCategorySizeDatePackage
LogListener.javaAPI DocExample629Sat Apr 23 22:35:28 BST 2005None

LogListener

public class LogListener extends Object

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

                int port = Integer.parseInt( args[0] );
                ServerSocket server = new ServerSocket( port );
                Socket client = server.accept();
                BufferedReader in = new BufferedReader( 
                        new InputStreamReader( client.getInputStream() ) );

                String line;
                while ( (line = in.readLine() ) != null )
                        System.out.println( line );