Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.mindbright.ssh2
Class SSH2SocksListener

    java.lang.Object
      com.mindbright.ssh2.SSH2SocksListener

All Implemented Interfaces:
  java.lang.Runnable

public class SSH2SocksListener
extends java.lang.Object
implements java.lang.Runnable

This class together with `SSH2SocksChannel` implements a simple SOCKS proxy server that open port forwards for each CONNECT packet. Only TCP is supported.

See Also:
  `SSH2SocksChannel`

Constructor Summary
`SSH2SocksListener(java.lang.String listenAddr, int listenPort, SSH2Connection connection)` Creates a SOCKS proxy server listening on the specified port and address.

Method Summary
`void` | `run()`
`void` | `stop()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SSH2SocksListener

    public SSH2SocksListener(java.lang.String listenAddr,
                             int listenPort,
                             SSH2Connection connection)
                      throws java.io.IOException

  Creates a SOCKS proxy server listening on the specified port and address.

Parameters:
  `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.

Method Detail

### stop

    public void stop()

### run

    public void run()

  Specified by:
    `run` in interface `java.lang.Runnable`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD