Package freenet.node.DarknetPeerNode

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


        }
      }
      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

Related Classes of freenet.node.DarknetPeerNode.FRIEND_VISIBILITY

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.