java.lang.Object
java.lang.Enum<ReplyCode>
com.github.jh3nd3rs0n.jargyle.protocolbase.socks5.ReplyCode
All Implemented Interfaces:
Serializable, Comparable<ReplyCode>, java.lang.constant.Constable

public enum ReplyCode extends Enum<ReplyCode>
Type of reply from the SOCKS server.
  • Enum Constant Details

    • SUCCEEDED

      public static final ReplyCode SUCCEEDED
      A reply from the SOCKS server indicating success.
    • GENERAL_SOCKS_SERVER_FAILURE

      public static final ReplyCode GENERAL_SOCKS_SERVER_FAILURE
      A reply from the SOCKS server indicating general SOCKS server failure.
    • CONNECTION_NOT_ALLOWED_BY_RULESET

      public static final ReplyCode CONNECTION_NOT_ALLOWED_BY_RULESET
      A reply from the SOCKS server indicating that the connection was not allowed by the ruleset.
    • NETWORK_UNREACHABLE

      public static final ReplyCode NETWORK_UNREACHABLE
      A reply from the SOCKS server indicating that the network was unreachable.
    • HOST_UNREACHABLE

      public static final ReplyCode HOST_UNREACHABLE
      A reply from the SOCKS server indicating that the host was unreachable.
    • CONNECTION_REFUSED

      public static final ReplyCode CONNECTION_REFUSED
      A reply from the SOCKS server indicating that the connection was refused.
    • TTL_EXPIRED

      public static final ReplyCode TTL_EXPIRED
      A reply from the SOCKS server indicating that the TTL expired.
    • COMMAND_NOT_SUPPORTED

      public static final ReplyCode COMMAND_NOT_SUPPORTED
      A reply from the SOCKS server indicating that the command of the request to the SOCKS server is not supported.
    • ADDRESS_TYPE_NOT_SUPPORTED

      public static final ReplyCode ADDRESS_TYPE_NOT_SUPPORTED
      A reply from the SOCKS server indicating that the address type of the desired destination address of the request to the SOCKS server is not supported.
  • Method Details

    • values

      public static ReplyCode[] 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 ReplyCode 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
    • valueOfByte

      public static ReplyCode valueOfByte(byte b)
      Returns the enum constant associated with the provided byte value. An IllegalArgumentException is thrown if there is no enum constant associated with the provided byte value.
      Parameters:
      b - the provided byte value
      Returns:
      the enum constant associated with the provided byte value
    • byteValue

      public byte byteValue()
      Returns the byte value associated with this ReplyCode.
      Returns:
      the byte value associated with this ReplyCode