public static void main(String[] args) 
	{
		System.setProperty("java.security.policy", "./policy");



		try 
		{
			Client cl = new Client();
			System.setSecurityManager(new RMISecurityManager());
			System.out.println("-- Demarrage du Client --");
			System.out.println("En attente du serveur...");
			Remote r = Naming.lookup("rmi://"+ip+":2001/roar");
			cl.setIPub((InterfacePublique)r);
			System.out.println("Debut");
			cl.getIPub().echo();
			while(true) {
				
				try{
					
					if(cl.getIPriv() == null) {
						System.out.println(cl.menuDisconnect());
						System.out.println(cl.processInputDisconnect());
					}
					else {
						System.out.println(cl.menuConnect());
						System.out.println(cl.processInputConnect());
					}
					
				} catch (Exception e){
					System.out.println("Commande incorrecte, veuillez réessayer");
					e.printStackTrace();
				}
				
			}
		} 
		catch (Exception e) 
		{
			e.printStackTrace();
		}
	}