Logo Search packages:      
Sourcecode: jenkins-trilead-ssh2 version File versions  Download package

synchronized LocalStreamForwarder com::trilead::ssh2::Connection::createLocalStreamForwarder ( String  host_to_connect,
int  port_to_connect 
) throws IOException [inline]

Creates a new LocalStreamForwarder. A LocalStreamForwarder manages an Input/Outputstream pair that is being forwarded via the secure tunnel into a TCP/IP connection to another host (which may or may not be identical to the remote SSH-2 server).

Parameters:
host_to_connect
port_to_connect
Returns:
A LocalStreamForwarder object.
Exceptions:
IOException

Definition at line 825 of file Connection.java.

      {
            if (tm == null)
                  throw new IllegalStateException("Cannot forward, you need to establish a connection first.");

            if (!authenticated)
                  throw new IllegalStateException("Cannot forward, connection is not authenticated.");

            return new LocalStreamForwarder(cm, host_to_connect, port_to_connect);
      }

Generated by  Doxygen 1.6.0   Back to index