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

synchronized void com::trilead::ssh2::Connection::cancelRemotePortForwarding ( int  bindPort ) throws IOException [inline]

Cancel an earlier requested remote port forwarding. Currently active forwardings will not be affected (e.g., disrupted). Note that further connection forwarding requests may be received until this method has returned.

Parameters:
bindPortthe allocated port number on the server
Exceptions:
IOExceptionif the remote side refuses the cancel request or another low level error occurs (e.g., the underlying connection is closed)

Definition at line 1332 of file Connection.java.

      {
            if (tm == null)
                  throw new IllegalStateException("You need to establish a connection first.");

            if (!authenticated)
                  throw new IllegalStateException("The connection is not authenticated.");

            cm.requestCancelGlobalForward(bindPort);
      }

Generated by  Doxygen 1.6.0   Back to index