Enum Class EOS_EConnectionClosedReason
java.lang.Object
java.lang.Enum<EOS_EConnectionClosedReason>
host.anzo.eossdk.eos.sdk.p2p.enums.EOS_EConnectionClosedReason
- All Implemented Interfaces:
com.sun.jna.NativeMapped,Serializable,Comparable<EOS_EConnectionClosedReason>,Constable
public enum EOS_EConnectionClosedReason
extends Enum<EOS_EConnectionClosedReason>
implements com.sun.jna.NativeMapped
Reasons why a P2P connection was closed
- Since:
- 8/22/2023
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe connection was at least locally accepted, but was closed by the local user via a call to EOS_P2P_CloseConnection / EOS_P2P_CloseConnections.The connection was at least locally accepted, but was gracefully closed by the remote user via a call to EOS_P2P_CloseConnection / EOS_P2P_CloseConnections.The connection was accepted and established, but the peer silently went away.The connection was accepted, but we failed to ever establish a connection with the remote user due to connectivity issues.The connection was accepted, but the remote user sent us invalid dataThe connection was accepted, The remote user sent an invalid messageThe connection was locally accepted, but we failed to negotiate a connection with the remote user.The connection was at least locally accepted, but was not remotely accepted in time.The connection was accepted, but the connection could not be created due to too many other existing connectionsThe connection was accepted, but there was an internal error occurred and the connection cannot be created or continue.The connection was closed for unknown reasons. -
Method Summary
Modifier and TypeMethodDescriptionstatic EOS_EConnectionClosedReasonfromNative(Object nativeValue, com.sun.jna.FromNativeContext context) Class<?>toNative()static EOS_EConnectionClosedReasonReturns the enum constant of this class with the specified name.static EOS_EConnectionClosedReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EOS_CCR_Unknown
The connection was closed for unknown reasons. This most notably happens during application shutdown. -
EOS_CCR_ClosedByLocalUser
The connection was at least locally accepted, but was closed by the local user via a call to EOS_P2P_CloseConnection / EOS_P2P_CloseConnections. -
EOS_CCR_ClosedByPeer
The connection was at least locally accepted, but was gracefully closed by the remote user via a call to EOS_P2P_CloseConnection / EOS_P2P_CloseConnections. -
EOS_CCR_TimedOut
The connection was at least locally accepted, but was not remotely accepted in time. -
EOS_CCR_TooManyConnections
The connection was accepted, but the connection could not be created due to too many other existing connections -
EOS_CCR_InvalidMessage
The connection was accepted, The remote user sent an invalid message -
EOS_CCR_InvalidData
The connection was accepted, but the remote user sent us invalid data -
EOS_CCR_ConnectionFailed
The connection was accepted, but we failed to ever establish a connection with the remote user due to connectivity issues. -
EOS_CCR_ConnectionClosed
The connection was accepted and established, but the peer silently went away. -
EOS_CCR_NegotiationFailed
The connection was locally accepted, but we failed to negotiate a connection with the remote user. This most commonly occurs if the local user goes offline or is logged-out during the connection process. -
EOS_CCR_UnexpectedError
The connection was accepted, but there was an internal error occurred and the connection cannot be created or continue.
-
-
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
-
fromId
-
fromNative
- Specified by:
fromNativein interfacecom.sun.jna.NativeMapped
-
toNative
- Specified by:
toNativein interfacecom.sun.jna.NativeMapped
-
nativeType
- Specified by:
nativeTypein interfacecom.sun.jna.NativeMapped
-