Package freenet.clients.http.geoip.IPConverter

Examples of freenet.clients.http.geoip.IPConverter.Country


    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);

    // version column
View Full Code Here

TOP

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

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.