Socks4CommandResponse into a Buffer.
| Modifier and Type | Field and Description |
|---|---|
| public static final Socks4ServerEncoder | |
| private static final byte[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected Buffer | allocateBuffer(ChannelHandlerContext
the ctx, Socks4CommandResponse ChannelHandlerContext which this MessageToByteEncoder belongs tothe message to be encoded msg)Implements abstract io. Buffer which will be used as argument of encode(ChannelHandlerContext, I, Buffer).
|
| protected void | encode(ChannelHandlerContext
the ctx, Socks4CommandResponse ChannelHandlerContext which this MessageToByteEncoder belongs tothe message to encode msg, Buffer the out)Buffer into which the encoded message will be writtenImplements abstract io. Buffer.
|
| public boolean | isSharable()
Overrides default io. true if this handler is sharable and thus can be added
to more than one ChannelPipeline.
|
| INSTANCE | back to summary |
|---|---|
| public static final Socks4ServerEncoder INSTANCE | |
| IPv4_HOSTNAME_ZEROED | back to summary |
|---|---|
| private static final byte[] IPv4_HOSTNAME_ZEROED | |
| Socks4ServerEncoder | back to summary |
|---|---|
| private Socks4ServerEncoder() | |
| allocateBuffer | back to summary |
|---|---|
| protected Buffer allocateBuffer(ChannelHandlerContext ctx, Socks4CommandResponse msg) Implements abstract io. Doc from io. Allocate a
| |
| encode | back to summary |
|---|---|
| protected void encode(ChannelHandlerContext ctx, Socks4CommandResponse msg, Buffer out) Implements abstract io. Doc from io. Encode a message into a
| |
| isSharable | back to summary |
|---|---|
| public boolean isSharable() Overrides default io. Doc from io. Returns
| |