org.tron.p2p.base.Constant Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libp2p Show documentation
Show all versions of libp2p Show documentation
libp2p is a p2p network SDK implemented in java language.
The newest version!
package org.tron.p2p.base;
import java.util.Arrays;
import java.util.List;
public class Constant {
public static final int NODE_ID_LEN = 64;
public static final List ipV4Urls = Arrays.asList(
"http://checkip.amazonaws.com", "https://ifconfig.me/", "https://4.ipw.cn/");
public static final List ipV6Urls = Arrays.asList(
"https://v6.ident.me", "http://6.ipw.cn/");
public static final String ipV4Hex = "00000000"; //32 bit
public static final String ipV6Hex = "00000000000000000000000000000000"; //128 bit
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy