public static void main(String[] args) throws IOException {

		boolean running = true;

		while (running) {
			System.out.println("0.\tQuit");
			System.out.println("1.\tCustom packet");
			System.out.println("2.\tIdent packet");
			System.out.println("3.\tRequest flavors packet");
			System.out.println("4.\tRequest top combos packet");
			System.out.println("5.\tRequest combo info packet");
			System.out.println("6.\tRate combo packet");
			System.out.println("7.\tServer shutdown packet");

			System.out.print("Enter choice: ");
			
			int choice = s.nextInt();

			switch (choice) {
			case 0:
				running = false;
				break;
			case 1:
				sendData(customPacket());
				break;
			case 2:
				sendData(identPacket());
				break;
			case 3:
				sendData(new byte[] { 0x01 });
				break;
			case 4:
				sendData(new byte[] { 0x02 });
				break;
			case 5:
				sendData(comboInfoPacket());
				break;
			case 6:
				sendData(rateComboPacket());
				break;
			case 7:
				sendData(new byte[] { 0x7F });
				break;
			}
		}
		
	}