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 |
CONNECTION_REFUSED |
GENERAL_SOCKS_SERVER_FAILURE |
HOST_UNREACHABLE |
NETWORK_UNREACHABLE |
SUCCEEDED |
TTL_EXPIRED |
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorMessage() |
byte |
getValue() |
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 NETWORK_UNREACHABLE
public static final ServerReply HOST_UNREACHABLE
public static final ServerReply CONNECTION_REFUSED
public static final ServerReply TTL_EXPIRED
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()
public String getErrorMessage()
Copyright © 2017. All rights reserved.