pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

Java paste-bin - collaborative debugging tool View Help


Posted by h on Sun 27th May 19:18
download | new post

  1.                                         System.out.println("bcc na hora de receber " + p.getBcc());
  2.                                         boolean error = (p.getBcc() != p.calcBcc());
  3.                                         System.out.println("ERRO NO BCC: " + error);
  4.                                         if (error) {
  5.                                                 log = logger.getText();
  6.                                                 logger.setText("PACOTE COM ERRO \n" + log);
  7.                                         } else {
  8.                                                 lastReceived = p.getId();
  9.                                                 if (p.getData().length > 0) {
  10.                                                         file.write(p.getData());
  11.                                                 }
  12.                                         }
  13.                                         System.out.println("CHEGUEI AQUI - PONTO 1");
  14.                                         PacoteResposta rp = new PacoteResposta(p.getId(), myAddress,
  15.                                                         fromAddress, !error);
  16.                                         log = logger.getText();
  17.                                         System.out.println("CHEGUEI AQUI - PONTO 2");
  18.                                         logger.setText("ENVIANDO RESPOSTA: " + rp.isOk() + "\n" + log);
  19.                                         System.out.println("CHEGUEI AQUI - PONTO 3");
  20.                                         inOut.sendReplyPacket(rp);
  21.                                         System.out.println("CHEGUEI AQUI - PONTO 4");               
  22.                                         // se for o ultimo pacote
  23.                                         if (p.getData().length < dataSize) {
  24.                                                 break;
  25.                                         }
  26.                                 }

Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Use syntax highlighting

To highlight particular lines, prefix each line with @@
:
:
Remember my settings