import java.io.*;


/**
 * A single-threaded ECHO server that also converts to uppercase
 *
 * @version 1.0
 * @author  Prof. David Bernstein, James Madison University
 */
public class UppercaseEchoServerDriver
{

    /**
     * Entry point of the application
     *
     * @param args    The command-line arguments
     */
    public static void main(String[] args)
    {
       BufferedReader        in;       
       UppercaseEchoServer   server;


       in = new BufferedReader(new InputStreamReader(System.in));
       
       // Construct and start the server
       server = new UppercaseEchoServer(9462);
       server.start();

       System.out.println("Press [Enter] to stop the server...");

       try
       {
          // Block until the user presses [Enter]
          in.readLine();
       }
       catch (IOException ioe)
       {
          System.out.println("  Stopping because of an IOException");
       }

       // Stop the server
       server.stop();
    }




}
