Enum Class EOS_EPacketReliability

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

public enum EOS_EPacketReliability extends Enum<EOS_EPacketReliability> implements com.sun.jna.NativeMapped
Types of packet reliability.

Ordered packets will only be ordered relative to other ordered packets. Reliable/unreliable and ordered/unordered communication can be sent on the same Socket ID and Channel.

Since:
8/21/2023
  • Enum Constant Details

    • EOS_PR_UnreliableUnordered

      public static final EOS_EPacketReliability EOS_PR_UnreliableUnordered
      Packets will only be sent once and may be received out of order
    • EOS_PR_ReliableUnordered

      public static final EOS_EPacketReliability EOS_PR_ReliableUnordered
      Packets may be sent multiple times and may be received out of order
    • EOS_PR_ReliableOrdered

      public static final EOS_EPacketReliability EOS_PR_ReliableOrdered
      Packets may be sent multiple times and will be received in order
  • Method Details

    • values

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