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 bytestatic final Socks5AddressTypestatic final Socks5AddressTypestatic final Socks5AddressTypeprivate final Stringprivate String -
Constructor Summary
ConstructorsConstructorDescriptionSocks5AddressType(int byteValue) Socks5AddressType(int byteValue, String name) -
Method Summary
Modifier and TypeMethodDescriptionbyteintbooleaninthashCode()toString()static Socks5AddressTypevalueOf(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
-
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<Socks5AddressType>
-
toString
-