Class EchoServer
java.lang.Object
|
+----java.lang.Thread
|
+----EchoServer
- public class EchoServer
- extends Thread
-
DEFAULT_PORT
-
-
EchoServer(int)
-
-
addConnection(Connection)
-
-
fail(Exception, String)
-
-
main(String[])
-
-
receive(String, Connection)
-
-
run()
-
DEFAULT_PORT
public static final int DEFAULT_PORT
EchoServer
public EchoServer(int port)
fail
public static void fail(Exception e,
String msg)
run
public void run()
- Overrides:
- run in class Thread
addConnection
public synchronized void addConnection(Connection c)
receive
public synchronized void receive(String line,
Connection c)
main
public static void main(String args[])