com.mindbright.ssh
Class SSHSocketTunnel

java.lang.Object
  |
  +--com.mindbright.ssh.SSHTunnel
        |
        +--com.mindbright.ssh.SSHSocketTunnel
All Implemented Interfaces:
SSHChannelListener

public final class SSHSocketTunnel
extends SSHTunnel


Nested Class Summary
static class SSHSocketTunnel.SSHSocketIS
           
static class SSHSocketTunnel.SSHSocketOS
           
 
Field Summary
protected  SSHSocketImpl impl
           
protected  SSHSocketTunnel.SSHSocketIS in
           
protected  java.net.InetAddress localAddress
           
protected  SSHSocketTunnel.SSHSocketOS out
           
protected  SSHPdu rest
           
 
Fields inherited from class com.mindbright.ssh.SSHTunnel
controller, ioSocket, remoteDesc, rxChan, txChan, txQueue
 
Constructor Summary
SSHSocketTunnel(SSHChannelController controller, SSHSocketImpl impl)
           
 
Method Summary
 int available()
           
 void checkTermination()
           
 void close()
           
 void closein(boolean explicit)
           
 void closeout()
           
 void connect(java.lang.String host, int port)
           
 void openFailure()
           
 int read(byte[] b, int off, int len)
           
 void receiveInputEOF()
           
 void receiveOutputClosed()
           
protected  void setLocalAddress(java.net.InetAddress localAddress)
           
 void start()
           
 boolean terminated()
           
 void write(byte[] b, int off, int len)
           
 
Methods inherited from class com.mindbright.ssh.SSHTunnel
close, getDescription, getLocalHost, getLocalPort, isOpen, prepare, receive, sendInputEOF, sendOutputClosed, setRemoteChannelId, setRemoteDesc, terminateNow, transmit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rest

protected SSHPdu rest

in

protected SSHSocketTunnel.SSHSocketIS in

out

protected SSHSocketTunnel.SSHSocketOS out

localAddress

protected java.net.InetAddress localAddress

impl

protected SSHSocketImpl impl
Constructor Detail

SSHSocketTunnel

public SSHSocketTunnel(SSHChannelController controller,
                       SSHSocketImpl impl)
                throws java.io.IOException
Method Detail

start

public void start()
Overrides:
start in class SSHTunnel

openFailure

public void openFailure()
Overrides:
openFailure in class SSHTunnel

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
java.io.IOException

connect

public void connect(java.lang.String host,
                    int port)
             throws java.io.IOException
java.io.IOException

close

public void close()
           throws java.io.IOException
java.io.IOException

closeout

public void closeout()

closein

public void closein(boolean explicit)

available

public int available()
              throws java.io.IOException
java.io.IOException

setLocalAddress

protected void setLocalAddress(java.net.InetAddress localAddress)

checkTermination

public void checkTermination()
Overrides:
checkTermination in class SSHTunnel

terminated

public boolean terminated()

receiveOutputClosed

public void receiveOutputClosed()
Overrides:
receiveOutputClosed in class SSHTunnel

receiveInputEOF

public void receiveInputEOF()
Overrides:
receiveInputEOF in class SSHTunnel