public ConnectionOrientedPdu alter ( PresentationContext context ) throws IOException { established = false; AlterContextPdu pdu = new AlterContextPdu (); pdu.setContextList ( new PresentationContext[] { context } ); pdu.setAssociationGroupId ( assocGroupId ); 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); }
public ConnectionOrientedPdu alter(PresentationContext context) throws IOException { established = false; AlterContextPdu pdu = new AlterContextPdu(); pdu.setContextList(new PresentationContext[] { context }); return pdu; }
protected void writeBody ( NetworkDataRepresentation ndr ) { int maxTransmitFragment = getMaxTransmitFragment (); int maxReceiveFragment = getMaxReceiveFragment (); ndr.writeUnsignedShort ( ( maxTransmitFragment == -1 ) ? ndr.getBuffer ().getCapacity () : maxTransmitFragment ); ndr.writeUnsignedShort ( ( maxReceiveFragment == -1 ) ? ndr.getBuffer ().getCapacity () : maxReceiveFragment ); 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 ); } }
currentIID = ((AlterContextPdu)recieved).getContextList()[0].abstractSyntax.getUuid().toString();
pdu = new AlterContextPdu (); break; case AlterContextResponsePdu.ALTER_CONTEXT_RESPONSE_TYPE:
protected void writeBody(NetworkDataRepresentation ndr) { int maxTransmitFragment = getMaxTransmitFragment(); int maxReceiveFragment = getMaxReceiveFragment(); ndr.writeUnsignedShort((maxTransmitFragment == -1) ? ndr.getBuffer().getCapacity() : maxTransmitFragment); ndr.writeUnsignedShort((maxReceiveFragment == -1) ? ndr.getBuffer().getCapacity() : maxReceiveFragment); 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); } }
currentIID = ((AlterContextPdu)recieved).getContextList()[0].abstractSyntax.getUuid().toString();
public ConnectionOrientedPdu alter(PresentationContext context) throws IOException { established = false; AlterContextPdu pdu = new AlterContextPdu(); pdu.setContextList(new PresentationContext[] { context }); return pdu; }
switch (type) { case AlterContextPdu.ALTER_CONTEXT_TYPE: pdu = new AlterContextPdu(); break; case AlterContextResponsePdu.ALTER_CONTEXT_RESPONSE_TYPE:
protected void writeBody(NetworkDataRepresentation ndr) { int maxTransmitFragment = getMaxTransmitFragment(); int maxReceiveFragment = getMaxReceiveFragment(); ndr.writeUnsignedShort((maxTransmitFragment == -1) ? ndr.getBuffer().getCapacity() : maxTransmitFragment); ndr.writeUnsignedShort((maxReceiveFragment == -1) ? ndr.getBuffer().getCapacity() : maxReceiveFragment); 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); } }
currentIID = ( (AlterContextPdu)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 alter(PresentationContext context) throws IOException { established = false; AlterContextPdu pdu = new AlterContextPdu(); pdu.setContextList(new PresentationContext[] { context }); pdu.setAssociationGroupId(assocGroupId); return pdu; }
public ConnectionOrientedPdu alter ( PresentationContext context ) throws IOException { established = false; AlterContextPdu pdu = new AlterContextPdu (); pdu.setContextList ( new PresentationContext[] { context } ); return pdu; }
switch (type) { case AlterContextPdu.ALTER_CONTEXT_TYPE: pdu = new AlterContextPdu(); break; case AlterContextResponsePdu.ALTER_CONTEXT_RESPONSE_TYPE:
this.established = true; presentationContexts = ( (AlterContextPdu)pdu ).getContextList (); reply = new AlterContextResponsePdu (); result = new PresentationResult[1];
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 alter(PresentationContext context) throws IOException { established = false; AlterContextPdu pdu = new AlterContextPdu(); pdu.setContextList(new PresentationContext[] { context }); pdu.setAssociationGroupId(assocGroupId); return pdu; }
established = true; presentationContexts = ((AlterContextPdu)pdu).getContextList(); reply = new AlterContextResponsePdu(); result = new PresentationResult[1];