public class SocksProxy extends AbstractCloseable implements IoHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
SocksProxy.Proxy |
class |
SocksProxy.Socks4 |
class |
SocksProxy.Socks5 |
AbstractCloseable.State| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<IoSession,SocksProxy.Proxy> |
proxies |
private ConnectionService |
service |
closeFuture, lock, statelogCLOSE_WAIT_TIMEOUT, DEFAULT_CLOSE_WAIT_TIMEOUT| Constructor and Description |
|---|
SocksProxy(ConnectionService service) |
| Modifier and Type | Method and Description |
|---|---|
void |
exceptionCaught(IoSession session,
java.lang.Throwable cause) |
void |
messageReceived(IoSession session,
Readable message) |
void |
sessionClosed(IoSession session) |
void |
sessionCreated(IoSession session) |
addCloseFutureListener, builder, close, doCloseGracefully, doCloseImmediately, isClosed, isClosing, preClose, removeCloseFutureListenergetSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, close, getMaxCloseWaitTime, isOpenprivate final ConnectionService service
private final java.util.Map<IoSession,SocksProxy.Proxy> proxies
public SocksProxy(ConnectionService service)
public void sessionCreated(IoSession session) throws java.lang.Exception
sessionCreated in interface IoHandlerjava.lang.Exceptionpublic void sessionClosed(IoSession session) throws java.lang.Exception
sessionClosed in interface IoHandlerjava.lang.Exceptionpublic void messageReceived(IoSession session, Readable message) throws java.lang.Exception
messageReceived in interface IoHandlerjava.lang.Exceptionpublic void exceptionCaught(IoSession session, java.lang.Throwable cause) throws java.lang.Exception
exceptionCaught in interface IoHandlerjava.lang.Exception