@Deprecated
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		Client client = new Client("raphael", 30001, 30000, "192.168.99.230");
		boolean running = true;
		while (running)
		{
			System.out.println("-register");
			System.out.println("-unregister");
			System.out.println("-list");
			System.out.println("-connectionClient");
			System.out.println("-sendMessage");
			System.out.println("-refresh");
			System.out.println("-close");
			System.out.print("lecture=");
			switch (sc.nextLine())
			{
			case "register":
				client.registerToServer();
				break;
			case "unregister":
				client.unregisterToServer();
				break;
			case "list":
				client.askListToServer();
				break;
			case "connectionClient":
				Object[] list = client.clientList.keySet().toArray();
				System.out.println("Liste des clients:");
				for (int i = 0; i < list.length; i++)
				{
					System.out.println("-" + i + ":" + client.clientList.get(list[i]));
				}
				System.out.println("entré le numéro d'ordre dans la liste:");
				String num = sc.nextLine();
				client.askClientConnectionToServer((String) list[Integer.parseInt(num)]);
				break;
			case "sendMessage":
				sc.reset();
				System.out.println("Message:");
				String mes = sc.nextLine();
				client.sendMessageToDialog(mes, client.dialogs.get(0).getIdDialog());
				break;
			case "refrech":
				break;
			case "close":
				running = false;
				break;

			default:
				break;
			}

		}
		sc.close();
	}