public static void main(String args[]) {
		if (args.length > 0) {
			if (args.length > 1 || args[0].equals("-help"))
				Usage();
			else
				try {
					port = Integer.parseInt(args[0]);
					if (port < 1)
						port = Constants.DEFAULT_PORT;
				} catch (NumberFormatException e) {
					Usage();
				}
		}
		BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
		ServerListener listen = new ServerListener(port);
		System.out.println("Server - Type \"exit\" to shut down server at any time.");
		listen.start();
		String userInput;
		try {
			while (listen.isAlive()){ 
				// while we're still listening for connections
				// check to see if user wants to shut us down
					if ((userInput = stdIn.readLine()) != null && userInput.equalsIgnoreCase("exit")){
						// they do! shut down.
						listen.interrupt();
						break;
					}
			}
		} catch (IOException e){
			// Issue reading std in
			System.out.println("Server - Internal error!\nAborting...");
			System.exit(1);
		}
	}