void cancel(PresentationContext pc, int msgId) throws IOException { Attributes cmd = Commands.mkCCancelRQ(msgId); encoder.writeDIMSE(pc, cmd, null); }
void cancel(PresentationContext pc, int msgId) throws IOException { Attributes cmd = Commands.mkCCancelRQ(msgId); encoder.writeDIMSE(pc, cmd, null); }
public void invoke(PresentationContext pc, Attributes cmd, DataWriter data, DimseRSPHandler rspHandler, int rspTimeout, boolean stopOnPending) throws IOException, InterruptedException { stopTimeout(); checkException(); rspHandler.setPC(pc); addDimseRSPHandler(rspHandler); encoder.writeDIMSE(pc, cmd, data); startTimeout(rspHandler.getMessageID(), rspTimeout, stopOnPending); }
public void invoke(PresentationContext pc, Attributes cmd, DataWriter data, DimseRSPHandler rspHandler, int rspTimeout, boolean stopOnPending) throws IOException, InterruptedException { stopTimeout(); checkException(); rspHandler.setPC(pc); addDimseRSPHandler(rspHandler); encoder.writeDIMSE(pc, cmd, data); startTimeout(rspHandler.getMessageID(), rspTimeout, stopOnPending); }
public void writeDimseRSP(PresentationContext pc, Attributes cmd, Attributes data) throws IOException { DataWriter writer = null; int datasetType = Commands.NO_DATASET; if (data != null) { writer = new DataWriterAdapter(data); datasetType = Commands.getWithDatasetType(); } cmd.setInt(Tag.CommandDataSetType, VR.US, datasetType); encoder.writeDIMSE(pc, cmd, writer); if (!Status.isPending(cmd.getInt(Tag.Status, 0))) { decPerforming(); startIdleTimeout(); } }
public void writeDimseRSP(PresentationContext pc, Attributes cmd, Attributes data) throws IOException { DataWriter writer = null; int datasetType = Commands.NO_DATASET; if (data != null) { writer = new DataWriterAdapter(data); datasetType = Commands.getWithDatasetType(); } cmd.setInt(Tag.CommandDataSetType, VR.US, datasetType); encoder.writeDIMSE(pc, cmd, writer); if (!Status.isPending(cmd.getInt(Tag.Status, 0))) { decPerforming(); startIdleTimeout(); } }