public enum SocksAddressType extends Enum<SocksAddressType>
enum
that defines types of addresses in the replies from the
SOCKS server.Enum Constant and Description |
---|
DOMAIN
A fully-qualified domain name
|
IPV4
A version-4 IP address
|
IPV6
A version-6 IP address
|
Modifier and Type | Method and Description |
---|---|
static SocksAddressType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SocksAddressType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SocksAddressType IPV4
public static final SocksAddressType DOMAIN
public static final SocksAddressType IPV6
public static SocksAddressType[] values()
for (SocksAddressType c : SocksAddressType.values()) System.out.println(c);
public static SocksAddressType 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 nullCopyright © 2017–2022 SNF4J.ORG. All rights reserved.