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 SSH2SocksChannel

    java.lang.Object
      com.mindbright.ssh2.SSH2SocksChannel

All Implemented Interfaces:
  java.lang.Runnable

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

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

See Also:
  `SSH2SocksListener`

Constructor Summary
`SSH2SocksChannel(java.net.Socket s, SSH2Connection connection)` Create a channel object for the specified socket that speaks (a subset of) SOCKS.

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

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

Constructor Detail

### SSH2SocksChannel

    public SSH2SocksChannel(java.net.Socket s,
                            SSH2Connection connection)

  Create a channel object for the specified socket that speaks (a subset of) SOCKS.

Parameters:
  `s` - The socket to use.
  `connection` - The connection to use.

Method Detail

### terminate

    public void terminate()

### 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