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

public Interface Socks5AddressEncoder

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

Encodes a SOCKS5 address into binary representation.
See Also
Socks5ClientEncoder, Socks5ServerEncoder

Field Summary

Modifier and TypeField and Description
public static final Socks5AddressEncoder

Method Summary

Modifier and TypeMethod and Description
public void
encodeAddress(Socks5AddressType
the type of the address
addrType
,
String
the string representation of the address
addrValue
,
Buffer
the output buffer where the encoded SOCKS5 address field will be written to
out
)

Encodes a SOCKS5 address.

Field Detail

DEFAULTback to summary
public static final Socks5AddressEncoder DEFAULT

Method Detail

encodeAddressback to summary
public void encodeAddress(Socks5AddressType addrType, String addrValue, Buffer out) throws Exception

Encodes a SOCKS5 address.

Parameters
addrType:Socks5AddressType

the type of the address

addrValue:String

the string representation of the address

out:Buffer

the output buffer where the encoded SOCKS5 address field will be written to