public NdrBuffer derive(int idx) { NdrBuffer nb = new NdrBuffer(buf, start); nb.index = idx; nb.deferred = deferred; return nb; }
public NdrBuffer derive(int idx) { NdrBuffer nb = new NdrBuffer(buf, start); nb.index = idx; nb.deferred = deferred; return nb; }
public NdrBuffer derive ( int idx ) { NdrBuffer nb = new NdrBuffer ( buf, start ); nb.index = idx; nb.deferred = deferred; return nb; }
public void setTransmitLength ( int transmitLength ) { transmitBuffer = new NdrBuffer ( new byte[transmitLength], 0 ); }
public void setReceiveLength ( int receiveLength ) { receiveBuffer = new NdrBuffer ( new byte[receiveLength], 0 ); }
public void setTransmitLength(int transmitLength) { transmitBuffer = new NdrBuffer(new byte[transmitLength], 0); }
public void setReceiveLength(int receiveLength) { receiveBuffer = new NdrBuffer(new byte[receiveLength], 0); }
public void setReceiveLength(int receiveLength) { receiveBuffer = new NdrBuffer(new byte[receiveLength], 0); }
public void setTransmitLength(int transmitLength) { transmitBuffer = new NdrBuffer(new byte[transmitLength], 0); }
private NdrBuffer ServerAlive ( final NetworkDataRepresentation ndr ) { logger.info ( "Oxid Object: ServerAlive" ); final byte[] buffer = new byte[32]; //16 + 16=just in case final NdrBuffer ndrBuffer = new NdrBuffer ( buffer, 0 ); ndrBuffer.enc_ndr_long ( 0 ); ndrBuffer.enc_ndr_long ( 0 ); ndrBuffer.enc_ndr_long ( 0 ); ndrBuffer.enc_ndr_long ( 0 ); return ndrBuffer; }
private NdrBuffer SimplePing ( final NetworkDataRepresentation ndr ) { logger.info ( "Oxid Object: SimplePing" ); final byte b[] = JIMarshalUnMarshalHelper.readOctetArrayLE ( ndr, 8 );//setid JIComOxidRuntime.addUpdateSets ( new JISetId ( b ), new ArrayList (), new ArrayList () ); this.buffer = new NdrBuffer ( new byte[16], 0 ); this.buffer.enc_ndr_long ( 0 ); this.buffer.enc_ndr_long ( 0 ); this.buffer.enc_ndr_long ( 0 ); this.buffer.enc_ndr_long ( 0 ); return this.buffer; }
private NdrBuffer ServerAlive(NetworkDataRepresentation ndr) { if (JISystem.getLogger().isLoggable(Level.INFO)) { JISystem.getLogger().info("Oxid Object: ServerAlive"); } byte[] buffer = new byte[32]; //16 + 16=just in case NdrBuffer ndrBuffer = new NdrBuffer(buffer,0); ndrBuffer.enc_ndr_long(0); ndrBuffer.enc_ndr_long(0); ndrBuffer.enc_ndr_long(0); ndrBuffer.enc_ndr_long(0); return ndrBuffer; } private NdrBuffer ServerAlive2(NetworkDataRepresentation ndr)
private NdrBuffer ServerAlive(NetworkDataRepresentation ndr) { if (JISystem.getLogger().isLoggable(Level.INFO)) { JISystem.getLogger().info("Oxid Object: ServerAlive"); } byte[] buffer = new byte[32]; //16 + 16=just in case NdrBuffer ndrBuffer = new NdrBuffer(buffer,0); ndrBuffer.enc_ndr_long(0); ndrBuffer.enc_ndr_long(0); ndrBuffer.enc_ndr_long(0); ndrBuffer.enc_ndr_long(0); return ndrBuffer; } private NdrBuffer ServerAlive2(NetworkDataRepresentation ndr)
private NdrBuffer SimplePing(NetworkDataRepresentation ndr) { if (JISystem.getLogger().isLoggable(Level.INFO)) { JISystem.getLogger().info("Oxid Object: SimplePing"); } byte b[] = JIMarshalUnMarshalHelper.readOctetArrayLE(ndr,8);//setid JIComOxidRuntime.addUpdateSets(new JISetId(b),new ArrayList(),new ArrayList()); buffer = new NdrBuffer(new byte[16],0); buffer.enc_ndr_long(0); buffer.enc_ndr_long(0); buffer.enc_ndr_long(0); buffer.enc_ndr_long(0); return buffer; }
private NdrBuffer SimplePing(NetworkDataRepresentation ndr) { if (JISystem.getLogger().isLoggable(Level.INFO)) { JISystem.getLogger().info("Oxid Object: SimplePing"); } byte b[] = JIMarshalUnMarshalHelper.readOctetArrayLE(ndr,8);//setid JIComOxidRuntime.addUpdateSets(new JISetId(b),new ArrayList(),new ArrayList()); buffer = new NdrBuffer(new byte[16],0); buffer.enc_ndr_long(0); buffer.enc_ndr_long(0); buffer.enc_ndr_long(0); buffer.enc_ndr_long(0); return buffer; }
/** Returns an Interface Pointer representation from raw bytes. * * @exclude * @param session * @param rawBytes * @return * @throws JIException */ public static IJIComObject instantiateComObject(JISession session,byte[] rawBytes, String ipAddress) throws JIException { NetworkDataRepresentation ndr = new NetworkDataRepresentation(); NdrBuffer ndrBuffer = new NdrBuffer(rawBytes,0); ndr.setBuffer(ndrBuffer); ndrBuffer.length = rawBytes.length; //this is a brand new session. if (session.getStub() == null) { JIComServer comServer = new JIComServer(session,JIInterfacePointer.decode(ndr, new ArrayList(), JIFlags.FLAG_REPRESENTATION_INTERFACEPTR_DECODE2, new HashMap()),ipAddress); return comServer.getInstance(); } else { IJIComObject retval = instantiateComObject(session, JIInterfacePointer.decode(ndr, new ArrayList(), JIFlags.FLAG_REPRESENTATION_INTERFACEPTR_DECODE2, new HashMap())); //increasing the reference count. retval.addRef(); return retval; } }
/** * Returns an Interface Pointer representation from raw bytes. * * @exclude * @param session * @param rawBytes * @return * @throws JIException */ public static IJIComObject instantiateComObject ( final JISession session, final byte[] rawBytes, final String ipAddress ) throws JIException { final NetworkDataRepresentation ndr = new NetworkDataRepresentation (); final NdrBuffer ndrBuffer = new NdrBuffer ( rawBytes, 0 ); ndr.setBuffer ( ndrBuffer ); ndrBuffer.length = rawBytes.length; //this is a brand new session. if ( session.getStub () == null ) { final JIComServer comServer = new JIComServer ( session, JIInterfacePointer.decode ( ndr, new ArrayList (), JIFlags.FLAG_REPRESENTATION_INTERFACEPTR_DECODE2, new HashMap () ), ipAddress ); return comServer.getInstance (); } else { final IJIComObject retval = instantiateComObject ( session, JIInterfacePointer.decode ( ndr, new ArrayList (), JIFlags.FLAG_REPRESENTATION_INTERFACEPTR_DECODE2, new HashMap () ) ); //increasing the reference count. retval.addRef (); return retval; } }