Package freenet.io.comm

Examples of freenet.io.comm.FreenetInetAddress.laxEquals()


   * also match from nominal IP addresses and domain names etc. */
  public synchronized boolean matchesIP(FreenetInetAddress addr, boolean strict) {
    if(detectedPeer != null) {
      FreenetInetAddress a = detectedPeer.getFreenetAddress();
      if(a != null) {
        if(strict ? a.equals(addr) : a.laxEquals(addr))
          return true;
      }
    }
    if((!strict) && nominalPeer != null) {
      for(Peer p : nominalPeer) {
View Full Code Here


    if((!strict) && nominalPeer != null) {
      for(Peer p : nominalPeer) {
        if(p == null) continue;
        FreenetInetAddress a = p.getFreenetAddress();
        if(a == null) continue;
        if(a.laxEquals(addr)) return true;
      }
    }
    return false;
  }
 
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.