public static enum Socks5Server.ResponseCode extends java.lang.Enum<Socks5Server.ResponseCode>
| Enum Constant and Description |
|---|
ADDRESS_TYPE_NOT_SUPPORTED
The address type requested was not supported.
|
COMMAND_NOT_SUPPORTED
The command sent was not supported.
|
CONNECTION_REFUSED
The host refused a connection on the requested port.
|
GENERAL_FAILURE
An unspecified failure caused the server not to be able to comply.
|
HOST_UNREACHABLE
The requested host was unreachable.
|
NETWORK_UNREACHABLE
The requested network was unreachable.
|
RULESET_DENIED
The server denied the connection due to a ruleset that prevented it.
|
SUCCESS
Sent when the server accepted the command and is going to connect the client.
|
TTL_EXPIRED
The Time-To-Live expired when trying to reach the server.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getCode() |
static Socks5Server.ResponseCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Socks5Server.ResponseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Socks5Server.ResponseCode SUCCESS
public static final Socks5Server.ResponseCode GENERAL_FAILURE
public static final Socks5Server.ResponseCode RULESET_DENIED
public static final Socks5Server.ResponseCode NETWORK_UNREACHABLE
public static final Socks5Server.ResponseCode HOST_UNREACHABLE
public static final Socks5Server.ResponseCode CONNECTION_REFUSED
public static final Socks5Server.ResponseCode TTL_EXPIRED
public static final Socks5Server.ResponseCode COMMAND_NOT_SUPPORTED
public static final Socks5Server.ResponseCode ADDRESS_TYPE_NOT_SUPPORTED
public static Socks5Server.ResponseCode[] values()
for (Socks5Server.ResponseCode c : Socks5Server.ResponseCode.values()) System.out.println(c);
public static Socks5Server.ResponseCode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic byte getCode()