Package freenet.keys

Examples of freenet.keys.NodeCHK


  @Override
  protected final void innerUnlock(boolean noRecordUnlock) {
    boolean handlerFinished;
    boolean senderFinished;
    NodeCHK k = null;
    RequestSender s = null;
    synchronized(this) {
      handlerFinished = this.handlerTransferring;
      handlerTransferring = false;
      senderFinished = this.senderTransferring;
View Full Code Here


      if(htl <= 0) htl = 1;
      SSKInsertHandler rh = new SSKInsertHandler(key, null, null, htl, source, id, node, now, tag, node.canWriteDatastoreInsert(htl), forkOnCacheable, preferInsert, ignoreLowBackoff, realTimeFlag);
          rh.receivedBytes(m.receivedByteCount());
      node.executor.execute(rh, "SSKInsertHandler for "+id+" on "+node.getDarknetPortNumber());
    } else {
          NodeCHK key = (NodeCHK) m.getObject(DMT.FREENET_ROUTING_KEY);
          short htl = m.getShort(DMT.HTL);
      if(htl <= 0) htl = 1;
      CHKInsertHandler rh = new CHKInsertHandler(key, htl, source, id, node, now, tag, forkOnCacheable, preferInsert, ignoreLowBackoff, realTimeFlag);
          rh.receivedBytes(m.receivedByteCount());
      node.executor.execute(rh, "CHKInsertHandler for "+id+" on "+node.getDarknetPortNumber());
View Full Code Here

      extra = Arrays.copyOfRange(extraBytesForKeys, xe, xe + EXTRA_BYTES_LENGTH);
    }
   
    byte cryptoAlgorithm = ClientCHK.getCryptoAlgorithmFromExtra(extra);
   
    return new NodeCHK(routingKey, cryptoAlgorithm);
  }
View Full Code Here

  }

  public NodeCHK[] listNodeKeys(boolean[] foundKeys, boolean copy) {
    ArrayList<NodeCHK> list = new ArrayList<NodeCHK>();
    for(int i=0;i<dataBlocks+checkBlocks;i++) {
      NodeCHK k = getNodeKey(i, foundKeys, copy);
      if(k == null) continue;
      list.add(k);
    }
    return list.toArray(new NodeCHK[list.size()]);
  }
View Full Code Here

TOP

Related Classes of freenet.keys.NodeCHK

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.