Socks4CommandRequest from the inbound Buffers.
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.
| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private int | |
| private static final int | |
| private Socks4ServerDecoder. | |
| private Socks4CommandType | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | decode(ChannelHandlerContext
the ctx, Buffer ChannelHandlerContext which this ByteToMessageDecoder belongs tothe in)Buffer from which to read dataImplements abstract io. Buffer to another.
|
| private void | |
| private static String | readString(String fieldName, Buffer in)
Reads a variable-length NUL-terminated string as defined in SOCKS4. |
| dstAddr | back to summary |
|---|---|
| private String dstAddr | |
| dstPort | back to summary |
|---|---|
| private int dstPort | |
| MAX_FIELD_LENGTH | back to summary |
|---|---|
| private static final int MAX_FIELD_LENGTH | |
| state | back to summary |
|---|---|
| private Socks4ServerDecoder. | |
| type | back to summary |
|---|---|
| private Socks4CommandType type | |
| userId | back to summary |
|---|---|
| private String userId | |
| Socks4ServerDecoder | back to summary |
|---|---|
| public Socks4ServerDecoder() | |
| decode | back to summary |
|---|---|
| protected void decode(ChannelHandlerContext ctx, Buffer in) throws Exception Implements abstract io. Doc from io. Decode the from one
| |
| fail | back to summary |
|---|---|
| private void fail(ChannelHandlerContext ctx, Exception cause) | |
| readString | back to summary |
|---|---|
| private static String readString(String fieldName, Buffer in) Reads a variable-length NUL-terminated string as defined in SOCKS4. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Socks4ServerDecoder. | |
| public static final Socks4ServerDecoder. | |
| public static final Socks4ServerDecoder. | |
| public static final Socks4ServerDecoder. | |
| public static final Socks4ServerDecoder. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Socks4ServerDecoder. | |
| public static Socks4ServerDecoder. |
| FAILURE | back to summary |
|---|---|
| public static final Socks4ServerDecoder. | |
| READ_DOMAIN | back to summary |
|---|---|
| public static final Socks4ServerDecoder. | |
| READ_USERID | back to summary |
|---|---|
| public static final Socks4ServerDecoder. | |
| START | back to summary |
|---|---|
| public static final Socks4ServerDecoder. | |
| SUCCESS | back to summary |
|---|---|
| public static final Socks4ServerDecoder. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static Socks4ServerDecoder. | |
| values | back to summary |
|---|---|
| public static Socks4ServerDecoder. | |