Package net.i2p.i2ptunnel.socks
Class SOCKSServerFactory
- java.lang.Object
-
- net.i2p.i2ptunnel.socks.SOCKSServerFactory
-
class SOCKSServerFactory extends Object
Factory class for creating SOCKS forwarders through I2P
-
-
Constructor Summary
Constructors Constructor Description SOCKSServerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SOCKSServer
createSOCKSServer(I2PAppContext ctx, Socket s, Properties props)
Create a new SOCKS server, using the provided socket (that must be connected to a client) to select the proper SOCKS protocol version.
-
-
-
Method Detail
-
createSOCKSServer
public static SOCKSServer createSOCKSServer(I2PAppContext ctx, Socket s, Properties props) throws SOCKSException
Create a new SOCKS server, using the provided socket (that must be connected to a client) to select the proper SOCKS protocol version. This method wil strip the SOCKS VER field from the provided sockets's input stream.- Parameters:
s
- a Socket used to choose the SOCKS server typeprops
- non-null- Throws:
SOCKSException
-
-