protected void writeBody ( NetworkDataRepresentation ndr ) { ndr.writeUnsignedShort ( getMaxTransmitFragment () ); ndr.writeUnsignedShort ( getMaxReceiveFragment () ); ndr.writeUnsignedLong ( getAssociationGroupId () ); PresentationContext[] contextList = getContextList (); int count = contextList.length; ndr.writeUnsignedSmall ( (short)count ); for ( int i = 0; i < count; i++ ) { contextList[i].write ( ndr ); } }
public ConnectionOrientedPdu init(PresentationContext context, Properties properties) throws IOException { established = false; connection = new DefaultConnection(); if (properties != null) { String maxTransmit = properties.getProperty(MAX_TRANSMIT_FRAGMENT); if (maxTransmit != null) { maxTransmitFragment = Integer.parseInt(maxTransmit); } String maxReceive = properties.getProperty(MAX_RECEIVE_FRAGMENT); if (maxReceive != null) { maxReceiveFragment = Integer.parseInt(maxReceive); } } BindPdu pdu = new BindPdu(); pdu.setContextList(new PresentationContext[] { context }); pdu.setMaxTransmitFragment(maxTransmitFragment); pdu.setMaxReceiveFragment(maxReceiveFragment); return pdu; }
public ConnectionOrientedPdu init(PresentationContext context, Properties properties) throws IOException { BindPdu pdu = (BindPdu)init2(context, properties); pdu.resetCallIdCounter(); return pdu; }
protected void readBody(NetworkDataRepresentation ndr) { setMaxTransmitFragment(ndr.readUnsignedShort()); setMaxReceiveFragment(ndr.readUnsignedShort()); setAssociationGroupId((int) ndr.readUnsignedLong()); int count = ndr.readUnsignedSmall(); PresentationContext[] contextList = new PresentationContext[count]; for (int i = 0; i < count; i++) { contextList[i] = new PresentationContext(); contextList[i].read(ndr); } setContextList(contextList); }
if (((BindAcknowledgePdu)pdu).getResultList()[0].reason != PresentationResult.PROVIDER_REJECTION) currentIID = ((BindPdu)recieved).getContextList()[0].abstractSyntax.getUuid().toString();
break; case BindPdu.BIND_TYPE: pdu = new BindPdu (); break; case BindAcknowledgePdu.BIND_ACKNOWLEDGE_TYPE:
if (((BindAcknowledgePdu)pdu).getResultList()[0].reason != PresentationResult.PROVIDER_REJECTION) currentIID = ((BindPdu)recieved).getContextList()[0].abstractSyntax.getUuid().toString();
protected void readBody(NetworkDataRepresentation ndr) { setMaxTransmitFragment(ndr.readUnsignedShort()); setMaxReceiveFragment(ndr.readUnsignedShort()); setAssociationGroupId((int) ndr.readUnsignedLong()); int count = ndr.readUnsignedSmall(); PresentationContext[] contextList = new PresentationContext[count]; for (int i = 0; i < count; i++) { contextList[i] = new PresentationContext(); contextList[i].read(ndr); } setContextList(contextList); }
break; case BindPdu.BIND_TYPE: pdu = new BindPdu(); break; case BindAcknowledgePdu.BIND_ACKNOWLEDGE_TYPE:
public ConnectionOrientedPdu init2(PresentationContext context, Properties properties) throws IOException { established = false; if (properties != null) { String maxTransmit = properties.getProperty(MAX_TRANSMIT_FRAGMENT); if (maxTransmit != null) { maxTransmitFragment = Integer.parseInt(maxTransmit); } String maxReceive = properties.getProperty(MAX_RECEIVE_FRAGMENT); if (maxReceive != null) { maxReceiveFragment = Integer.parseInt(maxReceive); } } BindPdu pdu = new BindPdu(); pdu.setContextList(new PresentationContext[] { context }); pdu.setMaxTransmitFragment(maxTransmitFragment); pdu.setMaxReceiveFragment(maxReceiveFragment); connection = new NtlmConnection(properties); assocGroupId = 0; return pdu; }
protected void writeBody(NetworkDataRepresentation ndr) { ndr.writeUnsignedShort(getMaxTransmitFragment()); ndr.writeUnsignedShort(getMaxReceiveFragment()); ndr.writeUnsignedLong(getAssociationGroupId()); PresentationContext[] contextList = getContextList(); int count = contextList.length; ndr.writeUnsignedSmall((short) count); for (int i = 0; i < count; i++) { contextList[i].write(ndr); } }
if ( ( (BindAcknowledgePdu)pdu ).getResultList ()[0].reason != PresentationResult.PROVIDER_REJECTION ) currentIID = ( (BindPdu)recieved ).getContextList ()[0].abstractSyntax.getUuid ().toString ();
protected void readBody ( NetworkDataRepresentation ndr ) { setMaxTransmitFragment ( ndr.readUnsignedShort () ); setMaxReceiveFragment ( ndr.readUnsignedShort () ); setAssociationGroupId ( (int)ndr.readUnsignedLong () ); int count = ndr.readUnsignedSmall (); PresentationContext[] contextList = new PresentationContext[count]; for ( int i = 0; i < count; i++ ) { contextList[i] = new PresentationContext (); contextList[i].read ( ndr ); } setContextList ( contextList ); }
public ConnectionOrientedPdu init ( PresentationContext context, Properties properties ) throws IOException { BindPdu pdu = (BindPdu)init2 ( context, properties ); pdu.resetCallIdCounter (); return pdu; }
break; case BindPdu.BIND_TYPE: pdu = new BindPdu(); break; case BindAcknowledgePdu.BIND_ACKNOWLEDGE_TYPE:
public ConnectionOrientedPdu init(PresentationContext context, Properties properties) throws IOException { established = false; connection = new DefaultConnection(); if (properties != null) { String maxTransmit = properties.getProperty(MAX_TRANSMIT_FRAGMENT); if (maxTransmit != null) { maxTransmitFragment = Integer.parseInt(maxTransmit); } String maxReceive = properties.getProperty(MAX_RECEIVE_FRAGMENT); if (maxReceive != null) { maxReceiveFragment = Integer.parseInt(maxReceive); } } BindPdu pdu = new BindPdu(); pdu.setContextList(new PresentationContext[] { context }); pdu.setMaxTransmitFragment(maxTransmitFragment); pdu.setMaxReceiveFragment(maxReceiveFragment); return pdu; }
protected void writeBody(NetworkDataRepresentation ndr) { ndr.writeUnsignedShort(getMaxTransmitFragment()); ndr.writeUnsignedShort(getMaxReceiveFragment()); ndr.writeUnsignedLong(getAssociationGroupId()); PresentationContext[] contextList = getContextList(); int count = contextList.length; ndr.writeUnsignedSmall((short) count); for (int i = 0; i < count; i++) { contextList[i].write(ndr); } }
PresentationContext[] presentationContexts = ( (BindPdu)pdu ).getContextList (); reply = new BindAcknowledgePdu (); PresentationResult[] result = new PresentationResult[1];
public ConnectionOrientedPdu init(PresentationContext context, Properties properties) throws IOException { BindPdu pdu = (BindPdu)init2(context, properties); pdu.resetCallIdCounter(); return pdu; }
public ConnectionOrientedPdu init2(PresentationContext context, Properties properties) throws IOException { established = false; if (properties != null) { String maxTransmit = properties.getProperty(MAX_TRANSMIT_FRAGMENT); if (maxTransmit != null) { maxTransmitFragment = Integer.parseInt(maxTransmit); } String maxReceive = properties.getProperty(MAX_RECEIVE_FRAGMENT); if (maxReceive != null) { maxReceiveFragment = Integer.parseInt(maxReceive); } } BindPdu pdu = new BindPdu(); pdu.setContextList(new PresentationContext[] { context }); pdu.setMaxTransmitFragment(maxTransmitFragment); pdu.setMaxReceiveFragment(maxReceiveFragment); connection = new NtlmConnection(properties); assocGroupId = 0; return pdu; }