public void receive(NdrBuffer buffer) throws IOException { if (!attached) throw new RpcException("Transport not attached."); if (input == null) input = socket.getInputStream(); buffer.length = (input.read(buffer.getBuffer(), 0, buffer.getCapacity())); }
public void receive(NdrBuffer buffer) throws IOException { if (!attached) throw new RpcException("Transport not attached."); if (input == null) input = socket.getInputStream(); buffer.length = (input.read(buffer.getBuffer(), 0, buffer.getCapacity())); }
@Override public void receive ( final NdrBuffer buffer ) throws IOException { if ( !this.attached ) { throw new RpcException ( "Transport not attached." ); } if ( this.input == null ) { this.input = this.socket.getInputStream (); } buffer.length = this.input.read ( buffer.getBuffer (), 0, buffer.getCapacity () ); }
public void transmit ( ConnectionOrientedPdu pdu, Transport transport ) throws IOException { if ( ! ( pdu instanceof Fragmentable ) ) { transmitFragment ( pdu, transport ); return; } Iterator fragments = ( (Fragmentable)pdu ).fragment ( transmitBuffer.getCapacity () ); while ( fragments.hasNext () ) { transmitFragment ( (ConnectionOrientedPdu)fragments.next (), transport ); } }
public void receive(NdrBuffer buffer) throws IOException { if (!attached) throw new RpcException("Transport not attached."); applySocketTimeout(); if (input == null) input = socket.getInputStream(); buffer.length = (input.read(buffer.getBuffer(), 0, buffer.getCapacity())); }
public void receive(NdrBuffer buffer) throws IOException { if (!attached) throw new RpcException("Transport not attached."); applySocketTimeout(); if (input == null) input = socket.getInputStream(); buffer.length = (input.read(buffer.getBuffer(), 0, buffer.getCapacity())); }
public void transmit(ConnectionOrientedPdu pdu, Transport transport) throws IOException { if (!(pdu instanceof Fragmentable)) { transmitFragment(pdu, transport); return; } Iterator fragments = ((Fragmentable) pdu).fragment(transmitBuffer.getCapacity()); while (fragments.hasNext()) { transmitFragment((ConnectionOrientedPdu) fragments.next(), transport); } }
public void transmit(ConnectionOrientedPdu pdu, Transport transport) throws IOException { if (!(pdu instanceof Fragmentable)) { transmitFragment(pdu, transport); return; } Iterator fragments = ((Fragmentable) pdu).fragment(transmitBuffer.getCapacity()); while (fragments.hasNext()) { transmitFragment((ConnectionOrientedPdu) fragments.next(), transport); } }
@Override public void receive ( final NdrBuffer buffer ) throws IOException { if ( !this.attached ) { throw new RpcException ( "Transport not attached." ); } applySocketTimeout (); if ( this.input == null ) { this.input = this.socket.getInputStream (); } buffer.length = this.input.read ( buffer.getBuffer (), 0, buffer.getCapacity () ); }
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 ); } }
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); } }
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); } }
if (logger.isLoggable(Level.FINEST)) logger.finest("\n" + " Reading bytes from RecieveBuffer Socket...Current Capacity:- " + receiveBuffer.getCapacity());
if (logger.isLoggable(Level.FINEST)) logger.finest("\n" + " Reading bytes from RecieveBuffer Socket...Current Capacity:- " + receiveBuffer.getCapacity());
if ( logger.isLoggable ( Level.FINEST ) ) logger.finest ( "\n" + " Reading bytes from RecieveBuffer Socket...Current Capacity:- " + receiveBuffer.getCapacity () );
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()); Port secondaryAddress = getSecondaryAddress(); if (secondaryAddress == null) secondaryAddress = new Port(); secondaryAddress.write(ndr); ndr.getBuffer().align(4); PresentationResult[] resultList = getResultList(); int count = resultList.length; ndr.writeUnsignedSmall((short) count); for (int i = 0; i < count; i++) { resultList[i].write(ndr); } }
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()); Port secondaryAddress = getSecondaryAddress(); if (secondaryAddress == null) secondaryAddress = new Port(); secondaryAddress.write(ndr); ndr.getBuffer().align(4); PresentationResult[] resultList = getResultList(); int count = resultList.length; ndr.writeUnsignedSmall((short) count); for (int i = 0; i < count; i++) { resultList[i].write(ndr); } }
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 () ); Port secondaryAddress = getSecondaryAddress (); if ( secondaryAddress == null ) secondaryAddress = new Port (); secondaryAddress.write ( ndr ); ndr.getBuffer ().align ( 4 ); PresentationResult[] resultList = getResultList (); int count = resultList.length; ndr.writeUnsignedSmall ( (short)count ); for ( int i = 0; i < count; i++ ) { resultList[i].write ( ndr ); } }