Enum Class EOS_ENATType

java.lang.Object
java.lang.Enum<EOS_ENATType>
host.anzo.eossdk.eos.sdk.p2p.enums.EOS_ENATType
All Implemented Interfaces:
com.sun.jna.NativeMapped, Serializable, Comparable<EOS_ENATType>, Constable

public enum EOS_ENATType extends Enum<EOS_ENATType> implements com.sun.jna.NativeMapped
Categories of NAT strictness.
Since:
8/21/2023
  • Enum Constant Details

    • EOS_NAT_Unknown

      public static final EOS_ENATType EOS_NAT_Unknown
      NAT type either unknown (remote) or we are unable to determine it (local)
    • EOS_NAT_Open

      public static final EOS_ENATType EOS_NAT_Open
      All peers can directly-connect to you
    • EOS_NAT_Moderate

      public static final EOS_ENATType EOS_NAT_Moderate
      You can directly-connect to other Moderate and Open peers
    • EOS_NAT_Strict

      public static final EOS_ENATType EOS_NAT_Strict
      You can only directly-connect to Open peers
  • Method Details

    • values

      public static EOS_ENATType[] 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

      public static EOS_ENATType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromId

      public static EOS_ENATType fromId(Integer id)
    • fromNative

      public Object fromNative(Object nativeValue, com.sun.jna.FromNativeContext context)
      Specified by:
      fromNative in interface com.sun.jna.NativeMapped
    • toNative

      public Object toNative()
      Specified by:
      toNative in interface com.sun.jna.NativeMapped
    • nativeType

      public Class<?> nativeType()
      Specified by:
      nativeType in interface com.sun.jna.NativeMapped