public void sendError(int errorCode, String reason) { try { if (transferTftp_ != null && transferTftp_.isOpen()) { if (trc.isFineEnabled()) trc.fine(String.format("Send error - code[%d] reason[%s]", errorCode, reason)); transferTftp_.bufferedSend(new TFTPErrorPacket(tftpPacket_.getAddress(), tftpPacket_.getPort(), errorCode, reason)); transferTftp_.endBufferedOps(); } } catch (Exception e) { } shutdown(); }
public void sendError(int errorCode, String reason) { try { if (transferTftp_ != null && transferTftp_.isOpen()) { if (trc.isFineEnabled()) trc.fine(String.format("Send error - code[%d] reason[%s]", errorCode, reason)); transferTftp_.bufferedSend(new TFTPErrorPacket(tftpPacket_.getAddress(), tftpPacket_.getPort(), errorCode, reason)); transferTftp_.endBufferedOps(); } } catch (Exception e) { } shutdown(); }
try { if (transferTftp_ != null && transferTftp_.isOpen()) { transferTftp_.endBufferedOps(); transferTftp_.close();
try { if (transferTftp_ != null && transferTftp_.isOpen()) { transferTftp_.endBufferedOps(); transferTftp_.close();