GeezerVison is showing netty.io — Socks4ClientDecoder (Netty API Reference (4.1.141.Final))
Class Socks4ClientDecoder
- All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler
Decodes a single Socks4CommandResponse from the inbound ByteBufs.
On successful decode, this decoder will forward the received data to the next handler, so that
other handler can remove this decoder later. On failed decode, this decoder will discard the
received data, so that other handler closes the connection later.
-
Nested Class Summary
Nested Classes
Modifier and Type
Class
Description
static enum
-
-
Constructor Summary
Constructors
-
Method Summary
Modifier and Type
Method
Description
protected void
Decode the from one ByteBuf to an other.
callDecode, checkpoint, checkpoint, state, state
Modifier and Type
Method
Description
protected void
Called once data should be decoded from the given ByteBuf.
protected void
Stores the internal cumulative buffer's reader position.
protected void
Stores the internal cumulative buffer's reader position and updates
the current decoder state.
Returns the current state of this decoder.
Sets the current state of this decoder.
actualReadableBytes, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
Modifier and Type
Method
Description
protected int
Returns the actual number of readable bytes in the internal cumulative
buffer of this decoder.
void
void
void
protected void
protected final void
final void
Do nothing by default, sub-classes may override this method.
protected void
Gets called after the ByteToMessageDecoder was removed from the actual context and it doesn't handle
events anymore.
Returns the internal cumulative buffer of this decoder.
boolean
void
void
void
void
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Socks4ClientDecoder
public Socks4ClientDecoder()
-
|