public String toString () { return "start=" + start + ",index=" + index + ",length=" + getLength (); } }
public String toString() { return "start=" + start + ",index=" + index + ",length=" + getLength(); } }
public String toString() { return "start=" + start + ",index=" + index + ",length=" + getLength(); } }
public void send(NdrBuffer buffer) throws IOException { if (!attached) throw new RpcException("Transport not attached."); if (output == null) output = socket.getOutputStream(); channel.configureBlocking(true); output.write(buffer.getBuffer(), 0, buffer.getLength()); output.flush(); }
public void send(NdrBuffer buffer) throws IOException { if (!attached) throw new RpcException("Transport not attached."); if (output == null) output = socket.getOutputStream(); output.write(buffer.getBuffer(), 0, buffer.getLength()); output.flush(); }
public void send(NdrBuffer buffer) throws IOException { if (!attached) throw new RpcException("Transport not attached."); if (output == null) output = socket.getOutputStream(); output.write(buffer.getBuffer(), 0, buffer.getLength()); output.flush(); }
public void send(NdrBuffer buffer) throws IOException { if (!attached) throw new RpcException("Transport not attached."); if (output == null) output = socket.getOutputStream(); output.write(buffer.getBuffer(), 0, buffer.getLength()); output.flush(); }
@Override public void send ( final NdrBuffer buffer ) throws IOException { if ( !this.attached ) { throw new RpcException ( "Transport not attached." ); } if ( this.output == null ) { this.output = this.socket.getOutputStream (); } this.channel.configureBlocking ( true ); this.output.write ( buffer.getBuffer (), 0, buffer.getLength () ); this.output.flush (); }
public void send(NdrBuffer buffer) throws IOException { if (!attached) throw new RpcException("Transport not attached."); out.write(buffer.getBuffer(), 0, buffer.getLength()); first = true; }
@Override public void send ( final NdrBuffer buffer ) throws IOException { if ( !this.attached ) { throw new RpcException ( "Transport not attached." ); } if ( this.output == null ) { this.output = this.socket.getOutputStream (); } this.output.write ( buffer.getBuffer (), 0, buffer.getLength () ); this.output.flush (); }
public void send(NdrBuffer buffer) throws IOException { if (!attached) throw new RpcException("Transport not attached."); out.write(buffer.getBuffer(), 0, buffer.getLength()); first = true; }
public void send ( NdrBuffer buffer ) throws IOException { if ( !attached ) throw new RpcException ( "Transport not attached." ); out.write ( buffer.getBuffer (), 0, buffer.getLength () ); first = true; }
private void attachAuthentication(AuthenticationVerifier verifier) throws IOException { try { NdrBuffer buffer = ndr.getBuffer(); int length = buffer.getLength(); buffer.setIndex(length); verifier.encode(ndr, buffer); length = buffer.getLength(); buffer.setIndex(ConnectionOrientedPdu.FRAG_LENGTH_OFFSET); ndr.writeUnsignedShort(length); ndr.writeUnsignedShort(verifier.body.length); // buffer.setIndex(ConnectionOrientedPdu.FLAGS_OFFSET); // ndr.writeUnsignedSmall(0); } catch (Exception ex) { throw new IOException("Error attaching authentication to PDU: " + ex.getMessage()); } }
private void attachAuthentication(AuthenticationVerifier verifier) throws IOException { try { NdrBuffer buffer = ndr.getBuffer(); int length = buffer.getLength(); buffer.setIndex(length); verifier.encode(ndr, buffer); length = buffer.getLength(); buffer.setIndex(ConnectionOrientedPdu.FRAG_LENGTH_OFFSET); ndr.writeUnsignedShort(length); ndr.writeUnsignedShort(verifier.body.length); // buffer.setIndex(ConnectionOrientedPdu.FLAGS_OFFSET); // ndr.writeUnsignedSmall(0); } catch (Exception ex) { throw new IOException("Error attaching authentication to PDU: " + ex.getMessage()); } }
private void attachAuthentication ( AuthenticationVerifier verifier ) throws IOException { try { NdrBuffer buffer = ndr.getBuffer (); int length = buffer.getLength (); buffer.setIndex ( length ); verifier.encode ( ndr, buffer ); length = buffer.getLength (); buffer.setIndex ( ConnectionOrientedPdu.FRAG_LENGTH_OFFSET ); ndr.writeUnsignedShort ( length ); ndr.writeUnsignedShort ( verifier.body.length ); // buffer.setIndex(ConnectionOrientedPdu.FLAGS_OFFSET); // ndr.writeUnsignedSmall(0); } catch ( Exception ex ) { throw new IOException ( "Error attaching authentication to PDU: " + ex.getMessage () ); } }
int index = buffer.getLength() - length - 8; // 8 = auth header size buffer.setIndex(index); AuthenticationVerifier verifier =
int index = buffer.getLength() - length - 8; // 8 = auth header size buffer.setIndex(index); AuthenticationVerifier verifier =
public void encode(NetworkDataRepresentation ndr, NdrBuffer dst) { ndr.setBuffer(dst); ndr.setFormat(getFormat()); writePdu(ndr); NdrBuffer buffer = ndr.getBuffer(); int length = buffer.getLength(); setFragmentLength(length); // write the header lengths, now that we know them. buffer.setIndex(FRAG_LENGTH_OFFSET); ndr.writeUnsignedShort(length); ndr.writeUnsignedShort(getAuthenticatorLength()); buffer.setIndex(length); }
public void encode(NetworkDataRepresentation ndr, NdrBuffer dst) { ndr.setBuffer(dst); ndr.setFormat(getFormat()); writePdu(ndr); NdrBuffer buffer = ndr.getBuffer(); int length = buffer.getLength(); setFragmentLength(length); // write the header lengths, now that we know them. buffer.setIndex(FRAG_LENGTH_OFFSET); ndr.writeUnsignedShort(length); ndr.writeUnsignedShort(getAuthenticatorLength()); buffer.setIndex(length); }
public void encode ( NetworkDataRepresentation ndr, NdrBuffer dst ) { ndr.setBuffer ( dst ); ndr.setFormat ( getFormat () ); writePdu ( ndr ); NdrBuffer buffer = ndr.getBuffer (); int length = buffer.getLength (); setFragmentLength ( length ); // write the header lengths, now that we know them. buffer.setIndex ( FRAG_LENGTH_OFFSET ); ndr.writeUnsignedShort ( length ); ndr.writeUnsignedShort ( getAuthenticatorLength () ); buffer.setIndex ( length ); }