private void encodeMaxPDULength(int maxPDULength) { encodeItemHeader(ItemType.MAX_PDU_LENGTH, 4); putInt(maxPDULength); }
private void encodeMaxPDULength(int maxPDULength) { encodeItemHeader(ItemType.MAX_PDU_LENGTH, 4); putInt(maxPDULength); }
private void encodePDVHeader(int last) { final int endpos = pos; final int pdvlen = endpos - pdvpos - 4; pos = pdvpos; putInt(pdvlen); put(pdvpcid); put(pdvcmd | last); pos = endpos; Association.LOG.trace("{} << PDV[len={}, pcid={}, mch={}]", new Object[] { as, pdvlen, pdvpcid, (pdvcmd | last) }); }
private void encodePDVHeader(int last) { final int endpos = pos; final int pdvlen = endpos - pdvpos - 4; pos = pdvpos; putInt(pdvlen); put(pdvpcid); put(pdvcmd | last); pos = endpos; Association.LOG.trace("{} << PDV[len={}, pcid={}, mch={}]", new Object[] { as, pdvlen, pdvpcid, (pdvcmd | last) }); }
public void writePDataTF() throws IOException { int pdulen = pos - 6; pos = 0; put(PDUType.P_DATA_TF); put(0); putInt(pdulen); Association.LOG.trace("{} << P-DATA-TF[len={}]", new Object[] { as, pdulen }); writePDU(pdulen); }
public void writePDataTF() throws IOException { int pdulen = pos - 6; pos = 0; put(PDUType.P_DATA_TF); put(0); putInt(pdulen); Association.LOG.trace("{} << P-DATA-TF[len={}]", new Object[] { as, pdulen }); writePDU(pdulen); }
private void encode(AAssociateRQAC rqac, int pduType, int pcItemType) { rqac.checkCallingAET(); rqac.checkCalledAET(); int pdulen = rqac.length(); if (buf.length < 6 + pdulen) buf = new byte[6 + pdulen]; pos = 0; put(pduType); put(0); putInt(pdulen); putShort(rqac.getProtocolVersion()); put(0); put(0); encodeAET(rqac.getCalledAET()); encodeAET(rqac.getCallingAET()); put(rqac.getReservedBytes(), 0, 32); encodeStringItem(ItemType.APP_CONTEXT, rqac.getApplicationContext()); for (PresentationContext pc : rqac.getPresentationContexts()) encode(pc, pcItemType); encodeUserInfo(rqac); }
private void encode(AAssociateRQAC rqac, int pduType, int pcItemType) { rqac.checkCallingAET(); rqac.checkCalledAET(); int pdulen = rqac.length(); if (buf.length < 6 + pdulen) buf = new byte[6 + pdulen]; pos = 0; put(pduType); put(0); putInt(pdulen); putShort(rqac.getProtocolVersion()); put(0); put(0); encodeAET(rqac.getCalledAET()); encodeAET(rqac.getCallingAET()); put(rqac.getReservedBytes(), 0, 32); encodeStringItem(ItemType.APP_CONTEXT, rqac.getApplicationContext()); for (PresentationContext pc : rqac.getPresentationContexts()) encode(pc, pcItemType); encodeUserInfo(rqac); }