public static enum Socks5Server.Command extends java.lang.Enum<Socks5Server.Command>
| Enum Constant and Description |
|---|
BIND
Represents a request from the client for the server to start listening on a port.
|
CONNECT
Represents a request from the client for the server to connect the input and output streams to a remote host.
|
| Modifier and Type | Method and Description |
|---|---|
int |
commandNumber() |
static Socks5Server.Command |
fromCommandNumber(int commandNumber) |
static Socks5Server.Command |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Socks5Server.Command[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Socks5Server.Command CONNECT
public static final Socks5Server.Command BIND
public static Socks5Server.Command[] values()
for (Socks5Server.Command c : Socks5Server.Command.values()) System.out.println(c);
public static Socks5Server.Command 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 static Socks5Server.Command fromCommandNumber(int commandNumber)
public int commandNumber()