public Iterator fragment(int size) { byte[] stub = getStub(); if (stub == null) { return Arrays.asList(new RequestCoPdu[] { this }).iterator(); } //subtracting 8 bytes for authentication header and 16 for the authentication verifier size, someone forgot the //poor guys.. int stubSize = size - (getFlag(PFC_OBJECT_UUID) ? 40 : 24) - 8 - 16 ; if (stub.length <= stubSize) { return Arrays.asList(new RequestCoPdu[] { this }).iterator(); } if (logger.isLoggable(Level.FINEST)) { logger.finest("In fragment of RequestCoPdu, this packet will be fragmented while sending...\n"); } return new FragmentIterator(stubSize); }
public Iterator fragment(int size) { byte[] stub = getStub(); if (stub == null) { return Arrays.asList(new RequestCoPdu[] { this }).iterator(); } //subtracting 8 bytes for authentication header and 16 for the authentication verifier size, someone forgot the //poor guys.. int stubSize = size - (getFlag(PFC_OBJECT_UUID) ? 40 : 24) - 8 - 16 ; if (stub.length <= stubSize) { return Arrays.asList(new RequestCoPdu[] { this }).iterator(); } if (logger.isLoggable(Level.FINEST)) { logger.finest("In fragment of RequestCoPdu, this packet will be fragmented while sending...\n"); } return new FragmentIterator(stubSize); }
public Iterator fragment ( int size ) { byte[] stub = getStub (); if ( stub == null ) { return Arrays.asList ( new RequestCoPdu[] { this } ).iterator (); } //subtracting 8 bytes for authentication header and 16 for the authentication verifier size, someone forgot the //poor guys.. int stubSize = size - ( getFlag ( PFC_OBJECT_UUID ) ? 40 : 24 ) - 8 - 16; if ( stub.length <= stubSize ) { return Arrays.asList ( new RequestCoPdu[] { this } ).iterator (); } if ( logger.isLoggable ( Level.FINEST ) ) { logger.finest ( "In fragment of RequestCoPdu, this packet will be fragmented while sending...\n" ); } return new FragmentIterator ( stubSize ); }
byte[] stub = pdu.getStub(); if (stub == null) stub = new byte[0]; while (fragments.hasNext()) { RequestCoPdu fragment = (RequestCoPdu) fragments.next(); byte[] fragmentStub = fragment.getStub(); if (fragmentStub != null && fragmentStub.length > 0) { byte[] tmp = new byte[stub.length + fragmentStub.length];
protected void writeStub ( NetworkDataRepresentation ndr ) { NdrBuffer dst = ndr.getBuffer (); dst.align ( 8, (byte)0 ); byte[] stub = getStub (); if ( stub != null ) ndr.writeOctetArray ( stub, 0, stub.length ); }
byte[] stub = pdu.getStub(); if (stub == null) stub = new byte[0]; while (fragments.hasNext()) { RequestCoPdu fragment = (RequestCoPdu) fragments.next(); byte[] fragmentStub = fragment.getStub(); if (fragmentStub != null && fragmentStub.length > 0) { byte[] tmp = new byte[stub.length + fragmentStub.length];
protected void writeStub(NetworkDataRepresentation ndr) { NdrBuffer dst = ndr.getBuffer(); dst.align(8, (byte) 0); byte[] stub = getStub(); if (stub != null) ndr.writeOctetArray(stub, 0, stub.length); }
protected void writeStub(NetworkDataRepresentation ndr) { NdrBuffer dst = ndr.getBuffer(); dst.align(8, (byte) 0); byte[] stub = getStub(); if (stub != null) ndr.writeOctetArray(stub, 0, stub.length); }
if ( request instanceof RequestCoPdu ) buffer = new NdrBuffer ( ( (RequestCoPdu)request ).getStub (), 0 ); if ( buffer.buf != null )
if (request instanceof RequestCoPdu) buffer = new NdrBuffer(((RequestCoPdu) request).getStub(), 0); if(buffer.buf != null)
if (request instanceof RequestCoPdu) buffer = new NdrBuffer(((RequestCoPdu) request).getStub(), 0); if(buffer.buf != null)