import java.io.*;
import java.net.Socket;

public class TServer extends TelnetTTY {
    public TServer(Socket s) throws IOException {
	super(s);
    }
    public void connected() {
	try {
	    send("A man, a plan, a canal, Panama!\n");
	    sock.close();
	    stopthread=true;
	}
	catch (IOException e) { }
    }

    public static void main(String args[]) throws Exception {
	TelnetTTYServer(TServer.class);
    }

}
