public abstract class TransportUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TransportUtil.IPv6Config |
Modifier and Type | Field and Description |
---|---|
static TransportUtil.IPv6Config |
DEFAULT_IPV6_CONFIG |
static String |
NTCP_IPV6_CONFIG |
static String |
SSU_IPV6_CONFIG |
Constructor and Description |
---|
TransportUtil() |
Modifier and Type | Method and Description |
---|---|
static TransportUtil.IPv6Config |
getIPv6Config(RouterContext ctx,
String transportStyle) |
static TransportUtil.IPv6Config |
getIPv6Config(String cfg) |
static boolean |
isIPv6(RouterAddress addr)
Addresses without a host (i.e.
|
static boolean |
isPubliclyRoutable(byte[] addr,
boolean allowIPv6) |
static boolean |
isPubliclyRoutable(byte[] addr,
boolean allowIPv4,
boolean allowIPv6) |
public static final String NTCP_IPV6_CONFIG
public static final String SSU_IPV6_CONFIG
public static final TransportUtil.IPv6Config DEFAULT_IPV6_CONFIG
public static TransportUtil.IPv6Config getIPv6Config(RouterContext ctx, String transportStyle)
public static TransportUtil.IPv6Config getIPv6Config(String cfg)
public static boolean isIPv6(RouterAddress addr)
public static boolean isPubliclyRoutable(byte[] addr, boolean allowIPv6)
addr
- non-nullpublic static boolean isPubliclyRoutable(byte[] addr, boolean allowIPv4, boolean allowIPv6)
addr
- non-null