public static boolean emitter(String input) throws UnknownHostException, IOException{
		Command com = null;
		if(input.equals(Protocol.LIST_COMMAND)){
			com = new List(_CSName, _CSPort, null);
		}
		else if(input.startsWith(Protocol.RETRIEVE_COMMAND + " ")){
			if(_SSName != null){
				String[] arguments = input.split(Protocol.RETRIEVE_COMMAND + " ");
				if(arguments.length == 2){
					com = new Retrieve(_SSName, _SSPort, arguments[1].split(" "));
				}
				else{
					System.out.println(Errors.INVALID_COMMAND);
				}
			}
			else{
				System.out.println("Please use the list command first.");
			}
		}
		else if(input.startsWith(Protocol.UPLOAD_COMMAND + " ")){
			String[] arguments = input.split(Protocol.UPLOAD_COMMAND + " ");
			if(arguments.length == 2){
				com = new Upload(_CSName, _CSPort, arguments[1].split(" "));
			}
			else{
				System.out.println(Errors.INVALID_COMMAND);
			}
		}
		else if(input.equals(Protocol.EXIT_COMMAND)){
			return false;
		}
		else{
			System.out.println(Errors.INVALID_COMMAND);
			return true;
		}
		if(com != null){
			com.run();
		}
		
		return true;
	}