abstract class SOCKSServer extends Object
Modifier and Type | Field and Description |
---|---|
protected I2PAppContext |
_context |
protected Log |
_log |
protected int |
addressType |
protected Socket |
clientSock |
protected String |
connHostName |
protected int |
connPort |
protected Properties |
props |
Modifier | Constructor and Description |
---|---|
protected |
SOCKSServer(I2PAppContext ctx,
Socket clientSock,
Properties props) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
confirmConnection()
Confirm to the client that the connection has succeeded
|
abstract Socket |
getClientSocket()
Get a socket that can be used to send/receive 8-bit clean data
to/from the client.
|
abstract I2PSocket |
getDestinationI2PSocket(I2PSOCKSTunnel t)
Get an I2PSocket that can be used to send/receive 8-bit clean data
to/from the destination of the SOCKS connection.
|
protected String |
getMappedDomainNameForIP(String ip)
IP to domain name mapping support.
|
protected Outproxy |
getOutproxyPlugin() |
protected abstract void |
setupServer()
Perform server initialization (expecially regarding protected
variables).
|
protected String connHostName
protected int connPort
protected int addressType
protected final I2PAppContext _context
protected final Socket clientSock
protected final Properties props
protected final Log _log
protected SOCKSServer(I2PAppContext ctx, Socket clientSock, Properties props)
protected String getMappedDomainNameForIP(String ip)
ip
- The IP address to check.protected abstract void setupServer() throws SOCKSException
SOCKSException
public abstract Socket getClientSocket() throws SOCKSException
SOCKSException
protected abstract void confirmConnection() throws SOCKSException
SOCKSException
public abstract I2PSocket getDestinationI2PSocket(I2PSOCKSTunnel t) throws SOCKSException
SOCKSException
protected Outproxy getOutproxyPlugin()