import java.io.*;

public class TcpEchoServer extends MTServerBase {
  public void run() {
   try {
     InputStream is = socket.getInputStream();
     OutputStream os = socket.getOutputStream();
     int c=0;
     while (c!=-1) {
       c=is.read();
       if (c!=-1) os.write(c);
       }
     }
   catch (IOException e) {
     System.out.println(e);
     }
   try {
     socket.close();
     }
   catch (IOException e) {}
   }
 
 public static void main(String [] args) {
   startServer(7,TcpEchoServer.class);
   }

 }
