net.i2p.i2ptunnel.socks
public abstract class SOCKSServer extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
addressType |
protected String |
connHostName |
protected int |
connPort |
Constructor and Description |
---|
SOCKSServer() |
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 abstract void |
setupServer()
Perform server initialization (expecially regarding protected
variables).
|
protected String connHostName
protected int connPort
protected int addressType
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