/* Envoi d'un message au client */
  public void SendMsg(String msg) {
    String chargeUtile = msg;
    int taille = chargeUtile.length();
    StringBuffer message = new StringBuffer(String.valueOf(taille) + "#" + chargeUtile);

    try {
      dos.write(message.toString().getBytes());
      dos.flush();
    } catch (IOException e) {
      System.err.println("RunnableTraitement : Erreur d'envoi de msg (IO) : " + e);
    }
  }
  /* Réception d'un message du client */
  public String ReceiveMsg() {
    byte b;
    StringBuffer taille = new StringBuffer();
    StringBuffer message = new StringBuffer();

    try {
      while ((b = dis.readByte()) != (byte) '#') {
        if (b != (byte) '#') taille.append((char) b);
      }

      for (int i = 0; i < Integer.parseInt(taille.toString()); i++) {
        b = dis.readByte();
        message.append((char) b);
      }
    } catch (IOException e) {
      System.err.println("RunnableTraitement : Erreur de reception de msg (IO) : " + e);
    }

    return message.toString();
  }