Package freenet.node.DarknetPeerNode

Examples of freenet.node.DarknetPeerNode.FRIEND_TRUST


      String privateComment = null;
      if(!isOpennet())
        privateComment = request.getPartAsStringFailsafe("peerPrivateNote", 250).trim();
     
      String trustS = request.getPartAsStringFailsafe("trust", 10);
      FRIEND_TRUST trust = null;
      if(trustS != null && !trustS.equals(""))
        trust = FRIEND_TRUST.valueOf(trustS);
     
      String visibilityS = request.getPartAsStringFailsafe("visibility", 10);
      FRIEND_VISIBILITY visibility = null;
View Full Code Here


        }
      }
      redirectHere(ctx);
      return;
    } else if (request.isPartSet("changeTrust") && request.isPartSet("doChangeTrust")) {
      FRIEND_TRUST trust = FRIEND_TRUST.valueOf(request.getPartAsStringFailsafe("changeTrust", 10));
      DarknetPeerNode[] peerNodes = node.getDarknetConnections();
      for(DarknetPeerNode pn: peerNodes) {
        if (request.isPartSet("node_"+pn.hashCode())) { 
          pn.setTrustLevel(trust);
        }
View Full Code Here

TOP

Related Classes of freenet.node.DarknetPeerNode.FRIEND_TRUST

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.