Package freenet.clients.http.geoip

Examples of freenet.clients.http.geoip.IPConverter


      pingTime = " (" + (int) peerNodeStatus.getAveragePingTime() + "ms / " +
      (int) peerNodeStatus.getAveragePingTimeCorrected()+"ms)";
    }
    HTMLNode addressRow = peerRow.addChild("td", "class", "peer-address");
    // Ip to country + Flags
    IPConverter ipc = IPConverter.getInstance(node.runDir().file(NodeUpdateManager.IPV4_TO_COUNTRY_FILENAME));
    byte[] addr = peerNodeStatus.getPeerAddressBytes();

    Country country = ipc.locateIP(addr);
    if(country != null) {
      country.renderFlagIcon(addressRow);
    }

    addressRow.addChild("#", ((peerNodeStatus.getPeerAddress() != null) ? (peerNodeStatus.getPeerAddress() + ':' + peerNodeStatus.getPeerPort()) : (l10n("unknownAddress"))) + pingTime);
View Full Code Here

TOP

Related Classes of freenet.clients.http.geoip.IPConverter

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.