Class EchoServer

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----EchoServer

public class EchoServer
extends Thread

Variable Index

 o DEFAULT_PORT

Constructor Index

 o EchoServer(int)

Method Index

 o addConnection(Connection)
 o fail(Exception, String)
 o main(String[])
 o receive(String, Connection)
 o run()

Variables

 o DEFAULT_PORT
 public static final int DEFAULT_PORT

Constructors

 o EchoServer
 public EchoServer(int port)

Methods

 o fail
 public static void fail(Exception e,
                         String msg)
 o run
 public void run()
Overrides:
run in class Thread
 o addConnection
 public synchronized void addConnection(Connection c)
 o receive
 public synchronized void receive(String line,
                                  Connection c)
 o main
 public static void main(String args[])