Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

mindbright.ssh
Class SSHSocketTunnel  view SSHSocketTunnel download SSHSocketTunnel.java

java.lang.Object
  extended bymindbright.ssh.SSHTunnel
      extended bymindbright.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
           
(package private)  boolean inputClosePending
           
(package private)  boolean inputExplicitClosed
           
protected  java.net.InetAddress localAddress
           
(package private)  java.lang.Object lock
           
(package private)  boolean openFail
           
protected  SSHSocketTunnel.SSHSocketOS out
           
(package private)  boolean outputClosed
           
protected  SSHPdu rest
           
(package private)  boolean terminated
           
 
Fields inherited from class mindbright.ssh.SSHTunnel
channelId, controller, ioSocket, receivedInputEOF, receivedOutputClosed, remoteChannelId, remoteDesc, rxChan, sentInputEOF, sentOutputClosed, 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 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

lock

java.lang.Object lock

inputClosePending

boolean inputClosePending

inputExplicitClosed

boolean inputExplicitClosed

outputClosed

boolean outputClosed

terminated

boolean terminated

openFail

boolean openFail

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

write

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

connect

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

close

public void close()
           throws java.io.IOException

closeout

public void closeout()

closein

public void closein(boolean explicit)

available

public int available()
              throws 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