public enum SocksCmdStatus extends Enum<SocksCmdStatus>
Enum Constant and Description |
---|
ADDRESS_NOT_SUPPORTED |
COMMAND_NOT_SUPPORTED |
FAILURE |
FORBIDDEN |
HOST_UNREACHABLE |
NETWORK_UNREACHABLE |
REFUSED |
SUCCESS |
TTL_EXPIRED |
UNASSIGNED |
Modifier and Type | Method and Description |
---|---|
byte |
byteValue() |
static SocksCmdStatus |
fromByte(byte b)
Deprecated.
Use
valueOf(byte) instead. |
static SocksCmdStatus |
valueOf(byte b) |
static SocksCmdStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SocksCmdStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SocksCmdStatus SUCCESS
public static final SocksCmdStatus FAILURE
public static final SocksCmdStatus FORBIDDEN
public static final SocksCmdStatus NETWORK_UNREACHABLE
public static final SocksCmdStatus HOST_UNREACHABLE
public static final SocksCmdStatus REFUSED
public static final SocksCmdStatus TTL_EXPIRED
public static final SocksCmdStatus COMMAND_NOT_SUPPORTED
public static final SocksCmdStatus ADDRESS_NOT_SUPPORTED
public static final SocksCmdStatus UNASSIGNED
public static SocksCmdStatus[] values()
for (SocksCmdStatus c : SocksCmdStatus.values()) System.out.println(c);
public static SocksCmdStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Deprecated public static SocksCmdStatus fromByte(byte b)
valueOf(byte)
instead.public static SocksCmdStatus valueOf(byte b)
public byte byteValue()
Copyright © 2008–2024 The Netty Project. All rights reserved.