@@ -0,0 +1,875 @@
+package Client;%0A%0Aimport java.rmi.registry.LocateRegistry;%0Aimport java.rmi.registry.Registry;%0Aimport java.util.Scanner;%0A%0Aimport Interface.CAdresseIPInterface;%0A%0Apublic class Client %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09try%7B%0A%09%09%09String adrServeur = %220.0.0.0%22;%0A%09%09%09Registry registre = LocateRegistry.getRegistry(adrServeur);%0A%09%09%09CAdresseIPInterface stub = (CAdresseIPInterface) registre.lookup(%22adresseIp%22);%0A%09%09%09String msg = %22fail%22;%0A%09%09%09String choice;%0A%09%09%09System.out.println(%22saisissez broadcast, classe ou reseau%22);%0A%09%09%09Scanner sc = new Scanner(System.in);%0A%09%09%09choice = sc.next();%0A%09%09%09if(choice.equals(%22broadcast%22))%7B%0A%09%09%09%09msg = stub.getBroadcast();%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09if(choice.equals(%22classe%22))%7B%0A%09%09%09%09msg = stub.getClasse();%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09if(choice.equals(%22reseau%22))%7B%0A%09%09%09%09msg = stub.getReseau();%0A%09%09%09%7D%0A%09%09%09System.out.println(msg);%0A%09%09%7D catch (Exception e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%7D%0A%7D%0A

Create Client.java