Examples of FRIEND_VISIBILITY


Examples of freenet.node.DarknetPeerNode.FRIEND_VISIBILITY

      FRIEND_TRUST trust = null;
      if(trustS != null && !trustS.equals(""))
        trust = FRIEND_TRUST.valueOf(trustS);
     
      String visibilityS = request.getPartAsStringFailsafe("visibility", 10);
      FRIEND_VISIBILITY visibility = null;
      if(visibilityS != null && !visibilityS.equals(""))
        visibility = FRIEND_VISIBILITY.valueOf(visibilityS);
     
      if(trust == null && !isOpennet()) {
        // FIXME: Layering violation. Ideally DarknetPeerNode would do this check.
View Full Code Here

Examples of freenet.node.DarknetPeerNode.FRIEND_VISIBILITY

        }
      }
      redirectHere(ctx);
      return;
    } else if (request.isPartSet("changeVisibility") && request.isPartSet("doChangeVisibility")) {
      FRIEND_VISIBILITY trust = FRIEND_VISIBILITY.valueOf(request.getPartAsStringFailsafe("changeVisibility", 10));
      DarknetPeerNode[] peerNodes = node.getDarknetConnections();
      for(DarknetPeerNode pn: peerNodes) {
        if (request.isPartSet("node_"+pn.hashCode())) { 
          pn.setVisibility(trust);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.