public CommunicationClientServer(Socket socket) throws IOException {
        this.socket = socket;

        BufferedReader tmp_entree = null;
        PrintWriter tmp_sortie = null;

        try {
            tmp_entree = new BufferedReader(new InputStreamReader(this.socket.getInputStream()));
            tmp_sortie = new PrintWriter(this.socket.getOutputStream());
        } catch (IOException e) {
            System.err.println("PB création des streams");
            if (tmp_entree != null) {
                tmp_entree.close();
            }
            if (tmp_sortie != null) {
                tmp_sortie.close();
            }
            throw e;
        }

        in = tmp_entree;
        out = tmp_sortie;
    }