/** * Registers the remote port forwarding for the loopback interface * of the remote. * * @param rport remote port * @param host host address * @param lport local port * @see #setPortForwardingR(String bind_address, int rport, String host, int lport, SocketFactory sf) */ public void setPortForwardingR(int rport, String host, int lport) throws JSchException{ setPortForwardingR(null, rport, host, lport, (SocketFactory)null); }
/** * Registers the remote port forwarding for the loopback interface * of the remote. * * @param rport remote port * @param host host address * @param lport local port * @see #setPortForwardingR(String bind_address, int rport, String host, int lport, SocketFactory sf) */ public void setPortForwardingR(int rport, String host, int lport) throws JSchException{ setPortForwardingR(null, rport, host, lport, (SocketFactory)null); }
/** * Registers the remote port forwarding for the loopback interface * of the remote. * * @param rport remote port * @param host host address * @param lport local port * @see #setPortForwardingR(String bind_address, int rport, String host, int lport, SocketFactory sf) */ public void setPortForwardingR(int rport, String host, int lport) throws JSchException { setPortForwardingR(null, rport, host, lport, (SocketFactory) null); }
/** * Registers the remote port forwarding for the loopback interface * of the remote. * * @param rport remote port * @param host host address * @param lport local port * @see #setPortForwardingR(String bind_address, int rport, String host, int lport, SocketFactory sf) */ public void setPortForwardingR(int rport, String host, int lport) throws JSchException{ setPortForwardingR(null, rport, host, lport, (SocketFactory)null); }
public void setPortForwardingR(int rport, String daemon, Object[] arg) throws JSchException{ setPortForwardingR(null, rport, daemon, arg); } public void setPortForwardingR(String bind_address, int rport, String daemon, Object[] arg) throws JSchException{
public void setPortForwardingR(int rport, String daemon) throws JSchException{ setPortForwardingR(null, rport, daemon, null); } public void setPortForwardingR(int rport, String daemon, Object[] arg) throws JSchException{
public void setPortForwardingR(int rport, String host, int lport) throws JSchException{ setPortForwardingR(null, rport, host, lport, (SocketFactory)null); } public void setPortForwardingR(String bind_address, int rport, String host, int lport) throws JSchException{
public void setPortForwardingR(int rport, String host, int lport, SocketFactory sf) throws JSchException{ setPortForwardingR(null, rport, host, lport, sf); } public void setPortForwardingR(String bind_address, int rport, String host, int lport, SocketFactory sf) throws JSchException{
/** * Registers the remote port forwarding for the loopback interface * of the remote. * * @param rport remote port * @param host host address * @param lport local port * @param sf socket factory * @see #setPortForwardingR(String bind_address, int rport, String host, int lport, SocketFactory sf) */ public void setPortForwardingR(int rport, String host, int lport, SocketFactory sf) throws JSchException { setPortForwardingR(null, rport, host, lport, sf); }
/** * Registers the remote port forwarding for the loopback interface * of the remote. * * @param rport remote port * @param host host address * @param lport local port * @param sf socket factory * @see #setPortForwardingR(String bind_address, int rport, String host, int lport, SocketFactory sf) */ public void setPortForwardingR(int rport, String host, int lport, SocketFactory sf) throws JSchException{ setPortForwardingR(null, rport, host, lport, sf); }
public void setPortForwardingR(String bind_address, int rport, String host, int lport) throws JSchException{ setPortForwardingR(bind_address, rport, host, lport, (SocketFactory)null); } public void setPortForwardingR(int rport, String host, int lport, SocketFactory sf) throws JSchException{
/** * Registers the remote port forwarding for the loopback interface * of the remote. * * @param rport remote port * @param host host address * @param lport local port * @param sf socket factory * @see #setPortForwardingR(String bind_address, int rport, String host, int lport, SocketFactory sf) */ public void setPortForwardingR(int rport, String host, int lport, SocketFactory sf) throws JSchException{ setPortForwardingR(null, rport, host, lport, sf); }
/** * Registers the remote port forwarding for the loopback interface * of the remote. * * @param rport remote port * @param host host address * @param lport local port * @param sf socket factory * @see #setPortForwardingR(String bind_address, int rport, String host, int lport, SocketFactory sf) */ public void setPortForwardingR(int rport, String host, int lport, SocketFactory sf) throws JSchException{ setPortForwardingR(null, rport, host, lport, sf); }
/** * Registers the remote port forwarding for the loopback interface * of the remote. * The TCP connection to <code>rport</code> on the remote will be * forwarded to an instance of the class <code>daemon</code>. * The class specified by <code>daemon</code> must implement * <code>ForwardedTCPIPDaemon</code>. * * @param rport remote port * @param daemon class name, which implements "ForwardedTCPIPDaemon" * @see #setPortForwardingR(String bind_address, int rport, String daemon, Object[] arg) */ public void setPortForwardingR(int rport, String daemon) throws JSchException{ setPortForwardingR(null, rport, daemon, null); }
/** * Registers the remote port forwarding for the loopback interface * of the remote. * The TCP connection to <code>rport</code> on the remote will be * forwarded to an instance of the class <code>daemon</code>. * The class specified by <code>daemon</code> must implement * <code>ForwardedTCPIPDaemon</code>. * * @param rport remote port * @param daemon class name, which implements "ForwardedTCPIPDaemon" * @see #setPortForwardingR(String bind_address, int rport, String daemon, Object[] arg) */ public void setPortForwardingR(int rport, String daemon) throws JSchException{ setPortForwardingR(null, rport, daemon, null); }
/** * Registers the remote port forwarding for the loopback interface * of the remote. * The TCP connection to <code>rport</code> on the remote will be * forwarded to an instance of the class <code>daemon</code>. * The class specified by <code>daemon</code> must implement * <code>ForwardedTCPIPDaemon</code>. * * @param rport remote port * @param daemon class name, which implements "ForwardedTCPIPDaemon" * @see #setPortForwardingR(String bind_address, int rport, String daemon, Object[] arg) */ public void setPortForwardingR(int rport, String daemon) throws JSchException { setPortForwardingR(null, rport, daemon, null); }
/** * Registers the remote port forwarding for the loopback interface * of the remote. * The TCP connection to <code>rport</code> on the remote will be * forwarded to an instance of the class <code>daemon</code> with * the argument <code>arg</code>. * The class specified by <code>daemon</code> must implement <code>ForwardedTCPIPDaemon</code>. * * @param rport remote port * @param daemon class name, which implements "ForwardedTCPIPDaemon" * @param arg arguments for "daemon" * @see #setPortForwardingR(String bind_address, int rport, String daemon, Object[] arg) */ public void setPortForwardingR(int rport, String daemon, Object[] arg) throws JSchException { setPortForwardingR(null, rport, daemon, arg); }
/** * Registers the remote port forwarding for the loopback interface * of the remote. * The TCP connection to <code>rport</code> on the remote will be * forwarded to an instance of the class <code>daemon</code>. * The class specified by <code>daemon</code> must implement * <code>ForwardedTCPIPDaemon</code>. * * @param rport remote port * @param daemon class name, which implements "ForwardedTCPIPDaemon" * @see #setPortForwardingR(String bind_address, int rport, String daemon, Object[] arg) */ public void setPortForwardingR(int rport, String daemon) throws JSchException{ setPortForwardingR(null, rport, daemon, null); }
/** * Registers the remote port forwarding for the loopback interface * of the remote. * The TCP connection to <code>rport</code> on the remote will be * forwarded to an instance of the class <code>daemon</code> with * the argument <code>arg</code>. * The class specified by <code>daemon</code> must implement <code>ForwardedTCPIPDaemon</code>. * * @param rport remote port * @param daemon class name, which implements "ForwardedTCPIPDaemon" * @param arg arguments for "daemon" * @see #setPortForwardingR(String bind_address, int rport, String daemon, Object[] arg) */ public void setPortForwardingR(int rport, String daemon, Object[] arg) throws JSchException{ setPortForwardingR(null, rport, daemon, arg); }
protected void onOpen() throws SshException { try { session.setPortForwardingR(remoteHost, remotePort, localAddress, localPort); channelCount++; } catch (JSchException e) { throw new SshException("Failed to configure remote port forward"); } }