Enum Class EOS_ENATType
- All Implemented Interfaces:
com.sun.jna.NativeMapped,Serializable,Comparable<EOS_ENATType>,Constable
Categories of NAT strictness.
- Since:
- 8/21/2023
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionYou can directly-connect to other Moderate and Open peersAll peers can directly-connect to youYou can only directly-connect to Open peersNAT type either unknown (remote) or we are unable to determine it (local) -
Method Summary
Modifier and TypeMethodDescriptionstatic EOS_ENATTypefromNative(Object nativeValue, com.sun.jna.FromNativeContext context) Class<?>toNative()static EOS_ENATTypeReturns the enum constant of this class with the specified name.static EOS_ENATType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EOS_NAT_Unknown
NAT type either unknown (remote) or we are unable to determine it (local) -
EOS_NAT_Open
All peers can directly-connect to you -
EOS_NAT_Moderate
You can directly-connect to other Moderate and Open peers -
EOS_NAT_Strict
You can only directly-connect to Open peers
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromId
-
fromNative
- Specified by:
fromNativein interfacecom.sun.jna.NativeMapped
-
toNative
- Specified by:
toNativein interfacecom.sun.jna.NativeMapped
-
nativeType
- Specified by:
nativeTypein interfacecom.sun.jna.NativeMapped
-