public InterfaceReseau(Protocole proto, String adresseIP, int portLocal, int portDistant) {
		protocole = proto;
		
	    switch(protocole) {
	        case UDP:
	            connexion = new ConnexionUDP(adresseIP, portLocal, portDistant);
	            break;
	        case TCP:
	            try { connexion = new ConnexionTCP(new Socket(adresseIP, portDistant)); }
	            catch (IOException e) { e.printStackTrace(); }
	            break;
	        case RMI:
	        	break;
	    }
	}