Examples of HostnameSyntaxException


Examples of freenet.support.transport.ip.HostnameSyntaxException

    String s = dis.readUTF();
    if(s.length() > 0)
      name = s;
    hostname = name;
        if(checkHostnameOrIPSyntax && null != hostname) {
          if(!HostnameUtil.isValidHostname(hostname, true)) throw new HostnameSyntaxException();
    }
  }
View Full Code Here

Examples of freenet.support.transport.ip.HostnameSyntaxException

          if(logDEBUG) Logger.debug(this, '\'' +host+"' does not look like an IP address");
        }
        this._address = addr;
        this.hostname = host;
        if(checkHostnameOrIPSyntax && null != this.hostname) {
          if(!HostnameUtil.isValidHostname(this.hostname, true)) throw new HostnameSyntaxException();
    }
        // we're created with a hostname so delay the lookup of the address
        // until it's needed to work better with dynamic DNS hostnames
  }
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.