public Client(String S, int Port) {
		try {
			String command="";
			
			//membuat koneksi ke server
			Socket client_socket = new Socket(S, Port);
			System.out.println("Terhubung ke server dengan address: " + client_socket.getRemoteSocketAddress());

			P = new Protocol(client_socket);
			Scanner reader = new Scanner(System.in);
			
			//antarmuka untuk client
			while (!command.equals("quit")) {
				System.out.print("SetanGundul> "); command = reader.nextLine();
				P.send(command);
				String response = P.receive();
				if (response.equals("REPEAT")) {
					//melakukan repeatedReceive()
					ArrayList<String> resp = P.repeatedReceive();
					for (int i = 0; i < resp.size(); i++) {
						System.out.println(resp.get(i));
					}
					System.out.println(P.receive());
				}else System.out.println(response);
			}
		}catch (Exception e){
			e.printStackTrace();
		}
	}