@ChannelHandler.Sharable public class SocksMessageEncoder extends io.netty.handler.codec.MessageToByteEncoder<SocksMessage>
SocksMessage
into a ByteBuf
.
MessageToByteEncoder
implementation.
Use this with SocksInitRequest
, SocksInitResponse
, SocksAuthRequest
,
SocksAuthResponse
, SocksCmdRequest
and SocksCmdResponse
Constructor and Description |
---|
SocksMessageEncoder() |
Modifier and Type | Method and Description |
---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
SocksMessage msg,
io.netty.buffer.ByteBuf out) |
acceptOutboundMessage, allocateBuffer, isPreferDirect, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
protected void encode(io.netty.channel.ChannelHandlerContext ctx, SocksMessage msg, io.netty.buffer.ByteBuf out) throws Exception
encode
in class io.netty.handler.codec.MessageToByteEncoder<SocksMessage>
Exception
Copyright © 2008–2020 The Netty Project. All rights reserved.