|
|
@ -99,12 +99,12 @@ import java.util.concurrent.TimeoutException;
|
|
|
|
public final class ClientAssociation {
|
|
|
|
public final class ClientAssociation {
|
|
|
|
|
|
|
|
|
|
|
|
private static final Integer16 version = new Integer16(new byte[] {(byte) 0x01, (byte) 0x01});
|
|
|
|
private static final Integer16 version = new Integer16(new byte[] {(byte) 0x01, (byte) 0x01});
|
|
|
|
|
|
|
|
private static final ParameterSupportOptions proposedParameterCbbBitString =
|
|
|
|
|
|
|
|
new ParameterSupportOptions(new byte[] {0x03, 0x05, (byte) 0xf1, 0x00});
|
|
|
|
private final ClientReceiver clientReceiver;
|
|
|
|
private final ClientReceiver clientReceiver;
|
|
|
|
private final BlockingQueue<MMSpdu> incomingResponses = new LinkedBlockingQueue<>();
|
|
|
|
private final BlockingQueue<MMSpdu> incomingResponses = new LinkedBlockingQueue<>();
|
|
|
|
private final ReverseByteArrayOutputStream reverseOStream =
|
|
|
|
private final ReverseByteArrayOutputStream reverseOStream =
|
|
|
|
new ReverseByteArrayOutputStream(500, true);
|
|
|
|
new ReverseByteArrayOutputStream(500, true);
|
|
|
|
private static ParameterSupportOptions proposedParameterCbbBitString =
|
|
|
|
|
|
|
|
new ParameterSupportOptions(new byte[] {0x03, 0x05, (byte) 0xf1, 0x00});
|
|
|
|
|
|
|
|
ServerModel serverModel;
|
|
|
|
ServerModel serverModel;
|
|
|
|
private AcseAssociation acseAssociation = null;
|
|
|
|
private AcseAssociation acseAssociation = null;
|
|
|
|
private int responseTimeout;
|
|
|
|
private int responseTimeout;
|
|
|
@ -582,15 +582,6 @@ public final class ClientAssociation {
|
|
|
|
public void setServerModel(ServerModel model) {
|
|
|
|
public void setServerModel(ServerModel model) {
|
|
|
|
this.serverModel = model;
|
|
|
|
this.serverModel = model;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Set the ProposedParameterCbbBitString parameter, default is byte[] {0x03, 0x05, (byte) 0xf1, 0x00}.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param proposedParameterCbbBitString the new Proposed Parameter Cbb-Bit-String
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public static void setProposedParameterCbbBitString(ParameterSupportOptions proposedParameterCbbBitString) {
|
|
|
|
|
|
|
|
ClientAssociation.proposedParameterCbbBitString = proposedParameterCbbBitString;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Triggers all GetDirectory and GetDefinition ACSI services needed to get the complete server
|
|
|
|
* Triggers all GetDirectory and GetDefinition ACSI services needed to get the complete server
|
|
|
|