com.mindbright.ssh2
public class SSH2SocksListener extends java.lang.Object implements java.lang.Runnable
SSH2SocksChannel
implements
a simple SOCKS proxy server that open port forwards for each CONNECT
packet. Only TCP is supported.SSH2SocksChannel
Constructor and Description |
---|
SSH2SocksListener(java.lang.String listenAddr,
int listenPort,
SSH2Connection connection)
Creates a SOCKS proxy server listening on the specified port and
address.
|
public SSH2SocksListener(java.lang.String listenAddr, int listenPort, SSH2Connection connection) throws java.io.IOException
listenAddr
- The address to open the listener to. should
normally be "127.0.0.1".listenPort
- The local port to listen at.connection
- The connection to use.java.io.IOException