public enum ServerReply extends Enum<ServerReply>
ServerReply
represents reply of servers will SOCKS client send a
command request to the SOCKS server.Enum Constant and Description |
---|
ADDRESS_TYPE_NOT_SUPPORTED
Address type not supported.
|
COMMAND_NOT_SUPPORTED
Command not supported.
|
CONNECTION_NOT_ALLOWED_BY_RULESET
Connection not allowed by ruleset.
|
CONNECTION_REFUSED
Connection refused.
|
GENERAL_SOCKS_SERVER_FAILURE
General SOCKS server failure.
|
HOST_UNREACHABLE
Host unreachable.
|
NETWORK_UNREACHABLE
Network unreachable.
|
SUCCEEDED
Succeeded.
|
TTL_EXPIRED
TTL expired.
|
Modifier and Type | Method and Description |
---|---|
byte |
getValue()
Returns reply code in byte.
|
static ServerReply |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServerReply[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerReply SUCCEEDED
public static final ServerReply GENERAL_SOCKS_SERVER_FAILURE
public static final ServerReply CONNECTION_NOT_ALLOWED_BY_RULESET
public static final ServerReply NETWORK_UNREACHABLE
public static final ServerReply HOST_UNREACHABLE
public static final ServerReply CONNECTION_REFUSED
public static final ServerReply TTL_EXPIRED
public static final ServerReply COMMAND_NOT_SUPPORTED
public static final ServerReply ADDRESS_TYPE_NOT_SUPPORTED
public static ServerReply[] values()
for (ServerReply c : ServerReply.values()) System.out.println(c);
public static ServerReply 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 nullpublic byte getValue()
Copyright © 2015. All rights reserved.