| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ClientConnectionFactory | newClientConnectionFactory(ClientConnectionFactory
the nested connectionFactory)ClientConnectionFactoryImplements abstract org.
|
| Socks4Proxy | back to summary |
|---|---|
| public Socks4Proxy(String host, int port) | |
| Socks4Proxy | back to summary |
|---|---|
| public Socks4Proxy(Origin. | |
| newClientConnectionFactory | back to summary |
|---|---|
| public ClientConnectionFactory newClientConnectionFactory(ClientConnectionFactory connectionFactory) Implements abstract org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ClientConnectionFactory |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Connection | newConnection(EndPoint
the endPoint, Map<String, Object> org. to link the newly created connection tothe context data to create the connection context)Implements org.
|
| connectionFactory | back to summary |
|---|---|
| private final ClientConnectionFactory connectionFactory | |
| Socks4ProxyClientConnectionFactory | back to summary |
|---|---|
| public Socks4ProxyClientConnectionFactory(ClientConnectionFactory connectionFactory) | |
| newConnection | back to summary |
|---|---|
| public Connection newConnection(EndPoint endPoint, Map<String, Object> context) Implements org.
| |
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final ClientConnectionFactory | |
| private final Map | |
| private static final Pattern | |
| private static final Logger | |
| private final Socks4Proxy. |
| Access | Constructor and Description |
|---|---|
| public | Socks4ProxyConnection(EndPoint endPoint, Executor executor, ClientConnectionFactory connectionFactory, Map<String, Object> context)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | failed(Throwable
the reason for the operation failure x)Overrides default org. Callback invoked when the operation fails. |
| public void | onFillable()
Implements abstract org. Callback method invoked when the endpoint is ready to be read. |
| public boolean | onIdleExpired(TimeoutException timeout)
Overrides org. Implements org. Callback method invoked upon an idle timeout event. |
| public void | onOpen()
Overrides org. Implements org. Callback method invoked when this connection is opened. |
| private void | |
| public void | succeeded()
Overrides default org. Callback invoked when the operation completes. |
| private void | |
| private void | writeSocks4Connect()
Writes the SOCKS "connect" bytes, differentiating between SOCKS 4 and 4A; the former sends an IPv4 address, the latter the full domain name. |
| connectionFactory | back to summary |
|---|---|
| private final ClientConnectionFactory connectionFactory | |
| context | back to summary |
|---|---|
| private final Map<String, Object> context | |
| IPv4_PATTERN | back to summary |
|---|---|
| private static final Pattern IPv4_PATTERN | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| parser | back to summary |
|---|---|
| private final Socks4Proxy. | |
| Socks4ProxyConnection | back to summary |
|---|---|
| public Socks4ProxyConnection(EndPoint endPoint, Executor executor, ClientConnectionFactory connectionFactory, Map<String, Object> context) | |
| failed | back to summary |
|---|---|
| public void failed(Throwable x) Overrides default org. Doc from org. Callback invoked when the operation fails. | |
| onFillable | back to summary |
|---|---|
| public void onFillable() Implements abstract org. Doc from org. Callback method invoked when the endpoint is ready to be read.
| |
| onIdleExpired | back to summary |
|---|---|
| public boolean onIdleExpired(TimeoutException timeout) Overrides org. Implements org. Doc from org. Callback method invoked upon an idle timeout event. Implementations of this method may return true to indicate that the idle timeout handling should proceed normally, typically failing the EndPoint and causing it to be closed. When false is returned, the handling of the idle timeout event is halted immediately and the EndPoint left in the state it was before the idle timeout event.
| |
| onOpen | back to summary |
|---|---|
| public void onOpen() Overrides org. Implements org. Doc from org. Callback method invoked when this connection is opened. Creators of the connection implementation are responsible for calling this method.
| |
| onSocks4Response | back to summary |
|---|---|
| private void onSocks4Response(int responseCode) throws IOException | |
| succeeded | back to summary |
|---|---|
| public void succeeded() Overrides default org. Doc from org. Callback invoked when the operation completes.
| |
| tunnel | back to summary |
|---|---|
| private void tunnel() | |
| writeSocks4Connect | back to summary |
|---|---|
| private void writeSocks4Connect() Writes the SOCKS "connect" bytes, differentiating between SOCKS 4 and 4A; the former sends an IPv4 address, the latter the full domain name. | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private static final int | |
| private int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| private boolean |
| cursor | back to summary |
|---|---|
| private int cursor | |
| EXPECTED_LENGTH | back to summary |
|---|---|
| private static final int EXPECTED_LENGTH | |
| response | back to summary |
|---|---|
| private int response | |
| Socks4Parser | back to summary |
|---|---|
| private Socks4Parser() | |
| expected | back to summary |
|---|---|
| private int expected() | |
| parse | back to summary |
|---|---|
| private boolean parse(ByteBuffer buffer) throws IOException | |