public class SocksPortUnificationServerHandler
extends io.netty.handler.codec.ByteToMessageDecoder
Socks4ServerDecoder
or Socks5InitialRequestDecoder
.Constructor and Description |
---|
SocksPortUnificationServerHandler()
Creates a new instance with the default configuration.
|
SocksPortUnificationServerHandler(Socks5ServerEncoder socks5encoder)
Creates a new instance with the specified
Socks5ServerEncoder . |
Modifier and Type | Method and Description |
---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
List<Object> out) |
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
ensureNotSharable, handlerAdded, isSharable
public SocksPortUnificationServerHandler()
public SocksPortUnificationServerHandler(Socks5ServerEncoder socks5encoder)
Socks5ServerEncoder
.
This constructor is useful when a user wants to use an alternative Socks5AddressEncoder
.Copyright © 2008–2018 The Netty Project. All rights reserved.