@ChannelHandler.Sharable public final class Socks4ClientEncoder extends io.netty.handler.codec.MessageToByteEncoder<Socks4CommandRequest>
Socks4CommandRequest
into a ByteBuf
.Modifier and Type | Field and Description |
---|---|
static Socks4ClientEncoder |
INSTANCE
The singleton instance of
Socks4ClientEncoder |
Modifier and Type | Method and Description |
---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
Socks4CommandRequest msg,
io.netty.buffer.ByteBuf out) |
acceptOutboundMessage, allocateBuffer, isPreferDirect, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
public static final Socks4ClientEncoder INSTANCE
Socks4ClientEncoder
protected void encode(io.netty.channel.ChannelHandlerContext ctx, Socks4CommandRequest msg, io.netty.buffer.ByteBuf out) throws Exception
encode
in class io.netty.handler.codec.MessageToByteEncoder<Socks4CommandRequest>
Exception
Copyright © 2008–2017 The Netty Project. All rights reserved.