Enum Class 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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPackets may be sent multiple times and will be received in orderPackets may be sent multiple times and may be received out of orderPackets will only be sent once and may be received out of order -
Method Summary
Modifier and TypeMethodDescriptionfromNative(Object nativeValue, com.sun.jna.FromNativeContext context) Class<?>toNative()static EOS_EPacketReliabilityReturns the enum constant of this class with the specified name.static EOS_EPacketReliability[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EOS_PR_UnreliableUnordered
Packets will only be sent once and may be received out of order -
EOS_PR_ReliableUnordered
Packets may be sent multiple times and may be received out of order -
EOS_PR_ReliableOrdered
Packets may be sent multiple times and will be received in order
-
-
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
-
fromNative
- Specified by:
fromNativein interfacecom.sun.jna.NativeMapped
-
toNative
- Specified by:
toNativein interfacecom.sun.jna.NativeMapped
-
nativeType
- Specified by:
nativeTypein interfacecom.sun.jna.NativeMapped
-