Enum Class EOS_ERelayControl
- All Implemented Interfaces:
com.sun.jna.NativeMapped,Serializable,Comparable<EOS_ERelayControl>,Constable
Setting for controlling whether relay servers are used.
Please see the following EOS_ERelayControl value compatibility-chart to better understand how changing this value can affect compatibility between clients with different settings.
+------------------------------+---------------------+-------------------------------+---------------------+
| | EOS_RC_NoRelays | EOS_RC_AllowRelays (Default) | EOS_RC_ForceRelays |
+------------------------------+---------------------+-------------------------------+---------------------
| EOS_RC_NoRelays | Compatible | Compatible | Connection Failure |
| EOS_RC_AllowRelays (Default) | Compatible | Compatible | Compatible |
| EOS_RC_ForceRelays | Connection Failure | Compatible | Compatible |
+------------------------------+---------------------+-------------------------------+---------------------+
- 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 ConstantDescriptionPeer connections will attempt to use relay servers, but only after direct connection attempts fail.Peer connections will only ever use relay servers.Peer connections will never attempt to use relay servers. -
Method Summary
Modifier and TypeMethodDescriptionfromNative(Object nativeValue, com.sun.jna.FromNativeContext context) Class<?>toNative()static EOS_ERelayControlReturns the enum constant of this class with the specified name.static EOS_ERelayControl[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EOS_RC_NoRelays
Peer connections will never attempt to use relay servers. Clients with restrictive NATs may not be able to connect to peers. -
EOS_RC_AllowRelays
Peer connections will attempt to use relay servers, but only after direct connection attempts fail. This is the default value if not changed. -
EOS_RC_ForceRelays
Peer connections will only ever use relay servers. This will add latency to all connections, but will hide IP Addresses from 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
-
fromNative
- Specified by:
fromNativein interfacecom.sun.jna.NativeMapped
-
toNative
- Specified by:
toNativein interfacecom.sun.jna.NativeMapped
-
nativeType
- Specified by:
nativeTypein interfacecom.sun.jna.NativeMapped
-