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
  • Enum Constant Details

    • EOS_CCR_Unknown

      public static final EOS_EConnectionClosedReason EOS_CCR_Unknown
      The connection was closed for unknown reasons. This most notably happens during application shutdown.
    • EOS_CCR_ClosedByLocalUser

      public static final EOS_EConnectionClosedReason 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

      public static final EOS_EConnectionClosedReason 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

      public static final EOS_EConnectionClosedReason EOS_CCR_TimedOut
      The connection was at least locally accepted, but was not remotely accepted in time.
    • EOS_CCR_TooManyConnections

      public static final EOS_EConnectionClosedReason EOS_CCR_TooManyConnections
      The connection was accepted, but the connection could not be created due to too many other existing connections
    • EOS_CCR_InvalidMessage

      public static final EOS_EConnectionClosedReason EOS_CCR_InvalidMessage
      The connection was accepted, The remote user sent an invalid message
    • EOS_CCR_InvalidData

      public static final EOS_EConnectionClosedReason EOS_CCR_InvalidData
      The connection was accepted, but the remote user sent us invalid data
    • EOS_CCR_ConnectionFailed

      public static final EOS_EConnectionClosedReason 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

      public static final EOS_EConnectionClosedReason EOS_CCR_ConnectionClosed
      The connection was accepted and established, but the peer silently went away.
    • EOS_CCR_NegotiationFailed

      public static final EOS_EConnectionClosedReason 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

      public static final EOS_EConnectionClosedReason 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

      public static EOS_EConnectionClosedReason[] 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_EConnectionClosedReason 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
    • fromId

      public static EOS_EConnectionClosedReason fromId(Integer id)
    • 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