public enum NetworkType extends java.lang.Enum<NetworkType>
Enum Constant and Description |
---|
Blocked
Network is blocked (bad; maybe STUN server is down; STUN should be OFF)
|
FullConeNAT
Full Cone NAT (good; STUN should be ON)
|
NotSymmetricNAT
Unknown NOT SYMMETRIC type of NAT (good; STUN should be ON)
|
Open
Open network (good; but STUN must be OFF)
|
PortRestrictedNAT
Port Restricted NAT (good; STUN should be ON)
|
RestrictConeNAT
Restricted Cone NAT (good; STUN should be ON)
|
SymmetricFirewall
Symmetric Firewall (bad; STUN should be OFF and hope for the best)
|
SymmetricNAT
Symmetric NAT (bad; STUN should be OFF and hope for the best)
|
Unknown
Unknown network type!
|
Modifier and Type | Method and Description |
---|---|
static NetworkType |
fromInt(int i) |
static NetworkType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NetworkType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkType Blocked
public static final NetworkType SymmetricFirewall
public static final NetworkType Open
public static final NetworkType FullConeNAT
public static final NetworkType SymmetricNAT
public static final NetworkType PortRestrictedNAT
public static final NetworkType RestrictConeNAT
public static final NetworkType NotSymmetricNAT
public static final NetworkType Unknown
public static NetworkType[] values()
for (NetworkType c : NetworkType.values()) System.out.println(c);
public static NetworkType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static NetworkType fromInt(int i)