protected void readHeader(NetworkDataRepresentation ndr) { if (ndr.readUnsignedSmall() != CONNECTION_ORIENTED_MAJOR_VERSION) { throw new IllegalStateException("Version mismatch."); } // read minor version setMinorVersion(ndr.readUnsignedSmall()); if (getType() != ndr.readUnsignedSmall()) { throw new IllegalArgumentException("Incorrect PDU type."); } setFlags(ndr.readUnsignedSmall()); Format format = ndr.readFormat(false); setFormat(format); ndr.setFormat(format); setFragmentLength(ndr.readUnsignedShort()); setAuthenticatorLength(ndr.readUnsignedShort()); this.callId = ((int) ndr.readUnsignedLong()); }
protected void readHeader(NetworkDataRepresentation ndr) { if (ndr.readUnsignedSmall() != CONNECTION_ORIENTED_MAJOR_VERSION) { throw new IllegalStateException("Version mismatch."); } // read minor version setMinorVersion(ndr.readUnsignedSmall()); if (getType() != ndr.readUnsignedSmall()) { throw new IllegalArgumentException("Incorrect PDU type."); } setFlags(ndr.readUnsignedSmall()); Format format = ndr.readFormat(false); setFormat(format); ndr.setFormat(format); setFragmentLength(ndr.readUnsignedShort()); setAuthenticatorLength(ndr.readUnsignedShort()); this.callId = ((int) ndr.readUnsignedLong()); }
protected void readHeader ( NetworkDataRepresentation ndr ) { if ( ndr.readUnsignedSmall () != CONNECTION_ORIENTED_MAJOR_VERSION ) { throw new IllegalStateException ( "Version mismatch." ); } // read minor version setMinorVersion ( ndr.readUnsignedSmall () ); if ( getType () != ndr.readUnsignedSmall () ) { throw new IllegalArgumentException ( "Incorrect PDU type." ); } setFlags ( ndr.readUnsignedSmall () ); Format format = ndr.readFormat ( false ); setFormat ( format ); ndr.setFormat ( format ); setFragmentLength ( ndr.readUnsignedShort () ); setAuthenticatorLength ( ndr.readUnsignedShort () ); this.callId = ( (int)ndr.readUnsignedLong () ); }