private void writeReply(DCCppReply r) { int i; int len = r.getLength(); // opCode+Nbytes+ECC // If r == null, there is no reply to be sent. try { outpipe.writeByte((byte) '<'); for (i = 0; i < len; i++) { outpipe.writeByte((byte) r.getElement(i)); } outpipe.writeByte((byte) '>'); } catch (java.io.IOException ex) { ConnectionStatus.instance() .setConnectionState(this.getCurrentPortName(), ConnectionStatus.CONNECTION_DOWN); } }