SOCKS4aServer
, SOCKS5Server
abstract class SOCKSServer
extends java.lang.Object
修飾子とタイプ | フィールド | 説明 |
---|---|---|
protected I2PAppContext |
_context |
|
protected Log |
_log |
|
protected int |
addressType |
|
protected java.net.Socket |
clientSock |
|
protected java.lang.String |
connHostName |
|
protected int |
connPort |
|
protected java.util.Properties |
props |
修飾子 | コンストラクタ | 説明 |
---|---|---|
protected |
SOCKSServer(I2PAppContext ctx,
java.net.Socket clientSock,
java.util.Properties props) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
protected abstract void |
confirmConnection() |
Confirm to the client that the connection has succeeded
|
abstract java.net.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 java.lang.String |
getMappedDomainNameForIP(java.lang.String ip) |
IP to domain name mapping support.
|
protected Outproxy |
getOutproxyPlugin() |
|
protected abstract void |
setupServer() |
Perform server initialization (expecially regarding protected
variables).
|
protected java.lang.String connHostName
protected int connPort
protected int addressType
protected final I2PAppContext _context
protected final java.net.Socket clientSock
protected final java.util.Properties props
protected final Log _log
protected SOCKSServer(I2PAppContext ctx, java.net.Socket clientSock, java.util.Properties props)
protected java.lang.String getMappedDomainNameForIP(java.lang.String ip)
ip
- The IP address to check.protected abstract void setupServer() throws SOCKSException
SOCKSException
public abstract java.net.Socket getClientSocket() throws SOCKSException
SOCKSException
protected abstract void confirmConnection() throws SOCKSException
SOCKSException
public abstract I2PSocket getDestinationI2PSocket(I2PSOCKSTunnel t) throws SOCKSException
SOCKSException
protected Outproxy getOutproxyPlugin()