|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.i2ptunnel.socks.SOCKSServer
public abstract class SOCKSServer
Abstract base class used by all SOCKS servers.
Field Summary | |
---|---|
protected int |
addressType
|
protected String |
connHostName
|
protected int |
connPort
|
protected Properties |
props
|
Constructor Summary | |
---|---|
SOCKSServer()
|
Method Summary | |
---|---|
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 abstract void |
setupServer()
Perform server initialization (expecially regarding protected variables). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String connHostName
protected int connPort
protected int addressType
protected Properties props
Constructor Detail |
---|
public SOCKSServer()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |