com.mindbright.ssh
Class SSHSocketImpl

java.lang.Object
  |
  +--java.net.SocketImpl
        |
        +--com.mindbright.ssh.SSHSocketImpl
All Implemented Interfaces:
java.net.SocketOptions

public class SSHSocketImpl
extends java.net.SocketImpl


Field Summary
protected  SSHSocketFactory factory
           
static int SO_TIMEOUT
           
 
Fields inherited from class java.net.SocketImpl
address, fd, localport, port
 
Fields inherited from interface java.net.SocketOptions
IP_MULTICAST_IF, IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS, SO_BINDADDR, SO_BROADCAST, SO_KEEPALIVE, SO_LINGER, SO_OOBINLINE, SO_RCVBUF, SO_REUSEADDR, SO_SNDBUF, TCP_NODELAY
 
Constructor Summary
protected SSHSocketImpl()
           
 
Method Summary
protected  void accept(java.net.SocketImpl s)
           
protected  int available()
           
protected  void bind(java.net.InetAddress host, int port)
           
protected  void close()
           
protected  void connect(java.net.InetAddress address, int port)
           
protected  void connect(java.lang.String host, int port)
           
protected  void create(boolean stream)
           
protected  void create(SSHClient client, boolean acceptor)
           
protected  void finalize()
           
protected  java.net.InetAddress getInetAddress()
           
protected  java.io.InputStream getInputStream()
           
protected  int getLocalPort()
           
 java.lang.Object getOption(int optID)
           
protected  java.io.OutputStream getOutputStream()
           
protected  int getPort()
           
protected  void listen(int backlog)
           
protected  void setFactory(SSHSocketFactory factory)
           
 void setOption(int optID, java.lang.Object value)
           
 
Methods inherited from class java.net.SocketImpl
connect, getFileDescriptor, sendUrgentData, shutdownInput, shutdownOutput, supportsUrgentData, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SO_TIMEOUT

public static final int SO_TIMEOUT
See Also:
Constant Field Values

factory

protected SSHSocketFactory factory
Constructor Detail

SSHSocketImpl

protected SSHSocketImpl()
Method Detail

setFactory

protected void setFactory(SSHSocketFactory factory)

create

protected void create(boolean stream)
Specified by:
create in class java.net.SocketImpl

create

protected void create(SSHClient client,
                      boolean acceptor)
               throws java.io.IOException
java.io.IOException

connect

protected void connect(java.lang.String host,
                       int port)
                throws java.io.IOException
Specified by:
connect in class java.net.SocketImpl
java.io.IOException

connect

protected void connect(java.net.InetAddress address,
                       int port)
                throws java.io.IOException
Specified by:
connect in class java.net.SocketImpl
java.io.IOException

bind

protected void bind(java.net.InetAddress host,
                    int port)
             throws java.io.IOException
Specified by:
bind in class java.net.SocketImpl
java.io.IOException

listen

protected void listen(int backlog)
               throws java.io.IOException
Specified by:
listen in class java.net.SocketImpl
java.io.IOException

accept

protected void accept(java.net.SocketImpl s)
               throws java.io.IOException
Specified by:
accept in class java.net.SocketImpl
java.io.IOException

getInputStream

protected java.io.InputStream getInputStream()
                                      throws java.io.IOException
Specified by:
getInputStream in class java.net.SocketImpl
java.io.IOException

getOutputStream

protected java.io.OutputStream getOutputStream()
                                        throws java.io.IOException
Specified by:
getOutputStream in class java.net.SocketImpl
java.io.IOException

available

protected int available()
                 throws java.io.IOException
Specified by:
available in class java.net.SocketImpl
java.io.IOException

close

protected void close()
              throws java.io.IOException
Specified by:
close in class java.net.SocketImpl
java.io.IOException

finalize

protected void finalize()
                 throws java.io.IOException
Overrides:
finalize in class java.lang.Object
java.io.IOException

setOption

public void setOption(int optID,
                      java.lang.Object value)
               throws java.net.SocketException
java.net.SocketException

getOption

public java.lang.Object getOption(int optID)
                           throws java.net.SocketException
java.net.SocketException

getInetAddress

protected java.net.InetAddress getInetAddress()
Overrides:
getInetAddress in class java.net.SocketImpl

getPort

protected int getPort()
Overrides:
getPort in class java.net.SocketImpl

getLocalPort

protected int getLocalPort()
Overrides:
getLocalPort in class java.net.SocketImpl