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, futureLock, state
log
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, getFutureLock, isClosed, isClosing, preClose, removeCloseFutureListener
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, close, getMaxCloseWaitTime, isOpen
private 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 IoHandler
java.lang.Exception
public void sessionClosed(IoSession session) throws java.lang.Exception
sessionClosed
in interface IoHandler
java.lang.Exception
public void messageReceived(IoSession session, Readable message) throws java.lang.Exception
messageReceived
in interface IoHandler
java.lang.Exception
public void exceptionCaught(IoSession session, java.lang.Throwable cause) throws java.lang.Exception
exceptionCaught
in interface IoHandler
java.lang.Exception