Package io.netty.handler.codec.socksx.v5
Class Socks5AddressType
java.lang.Object
io.netty.handler.codec.socksx.v5.Socks5AddressType
- All Implemented Interfaces:
Comparable<Socks5AddressType>
The type of address in
Socks5CommandRequest
and Socks5CommandResponse
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte
static final Socks5AddressType
static final Socks5AddressType
static final Socks5AddressType
private final String
private String
-
Constructor Summary
ConstructorsConstructorDescriptionSocks5AddressType
(int byteValue) Socks5AddressType
(int byteValue, String name) -
Method Summary
Modifier and TypeMethodDescriptionbyte
int
boolean
int
hashCode()
toString()
static Socks5AddressType
valueOf
(byte b)
-
Field Details
-
IPv4
-
DOMAIN
-
IPv6
-
byteValue
private final byte byteValue -
name
-
text
-
-
Constructor Details
-
Socks5AddressType
public Socks5AddressType(int byteValue) -
Socks5AddressType
-
-
Method Details
-
valueOf
-
byteValue
public byte byteValue() -
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Socks5AddressType>
-
toString
-