Top Description Fields Methods
io.netty.contrib.handler.codec.socksx.v5

public Interface Socks5AddressDecoder

Imports
io.netty5.buffer.Buffer, io.netty5.handler.codec.DecoderException, java.nio.charset.StandardCharsets, io.netty5.util.NetUtil

Decodes a SOCKS5 address field into its string representation.
See Also
Socks5CommandRequestDecoder, Socks5CommandResponseDecoder

Field Summary

Modifier and TypeField and Description
public static final Socks5AddressDecoder

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the address or null if not enough bytes are readable yet.
decodeAddress
(Socks5AddressType
the type of the address
addrType
,
Buffer
the input buffer which contains the SOCKS5 address field at its reader index
in
)

Decodes a SOCKS5 address field into its string representation.

Field Detail

DEFAULTback to summary
public static final Socks5AddressDecoder DEFAULT

Method Detail

decodeAddressback to summary
public String decodeAddress(Socks5AddressType addrType, Buffer in) throws Exception

Decodes a SOCKS5 address field into its string representation.

Parameters
addrType:Socks5AddressType

the type of the address

in:Buffer

the input buffer which contains the SOCKS5 address field at its reader index

Returns:String

the address or null if not enough bytes are readable yet.