Enum Class EOS_ENetworkConnectionType

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

public enum EOS_ENetworkConnectionType extends Enum<EOS_ENetworkConnectionType> implements com.sun.jna.NativeMapped
Types of network connections.
Since:
8/22/2023
  • Enum Constant Details

    • EOS_NCT_NoConnection

      public static final EOS_ENetworkConnectionType EOS_NCT_NoConnection
      There is no established connection
    • EOS_NCT_DirectConnection

      public static final EOS_ENetworkConnectionType EOS_NCT_DirectConnection
      A direct connection to the peer over the Internet or Local Network
    • EOS_NCT_RelayedConnection

      public static final EOS_ENetworkConnectionType EOS_NCT_RelayedConnection
      A relayed connection using Epic-provided servers to the peer over the Internet
  • Method Details

    • values

      public static EOS_ENetworkConnectionType[] 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_ENetworkConnectionType 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
    • 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