Class Connection

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

public class Connection
extends Thread

Variable Index

 o server
 o sin
 o socket
 o sout

Constructor Index

 o Connection(Socket, EchoServer)

Method Index

 o run()
 o send(String)

Variables

 o server
 protected EchoServer server
 o socket
 protected Socket socket
 o sin
 protected BufferedReader sin
 o sout
 protected PrintWriter sout

Constructors

 o Connection
 public Connection(Socket socket,
                   EchoServer server)

Methods

 o run
 public void run()
Overrides:
run in class Thread
 o send
 public void send(String line)