public enum EOS_ENATType extends java.lang.Enum<EOS_ENATType> implements com.sun.jna.NativeMapped
| Enum Constant and Description |
|---|
EOS_NAT_Moderate
You can directly-connect to other Moderate and Open peers
|
EOS_NAT_Open
All peers can directly-connect to you
|
EOS_NAT_Strict
You can only directly-connect to Open peers
|
EOS_NAT_Unknown
NAT type either unknown (remote) or we are unable to determine it (local)
|
| Modifier and Type | Method and Description |
|---|---|
static EOS_ENATType |
fromId(java.lang.Integer id) |
java.lang.Object |
fromNative(java.lang.Object nativeValue,
com.sun.jna.FromNativeContext context) |
java.lang.Class<?> |
nativeType() |
java.lang.Object |
toNative() |
static EOS_ENATType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EOS_ENATType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EOS_ENATType EOS_NAT_Unknown
public static final EOS_ENATType EOS_NAT_Open
public static final EOS_ENATType EOS_NAT_Moderate
public static final EOS_ENATType EOS_NAT_Strict
public static EOS_ENATType[] values()
for (EOS_ENATType c : EOS_ENATType.values()) System.out.println(c);
public static EOS_ENATType 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 EOS_ENATType fromId(java.lang.Integer id)
public java.lang.Object fromNative(java.lang.Object nativeValue,
com.sun.jna.FromNativeContext context)
fromNative in interface com.sun.jna.NativeMappedpublic java.lang.Object toNative()
toNative in interface com.sun.jna.NativeMappedpublic java.lang.Class<?> nativeType()
nativeType in interface com.sun.jna.NativeMapped