public class SshTunneler
extends java.lang.Object
| Constructor and Description |
|---|
SshTunneler(int portLocal,
SshParameters params,
java.lang.String remoteIp,
int remotePort)
Creates a new instance of SshTunneler local service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
serviceEnded(SshTunnelerEvent event)
Service ssh tunneler ended event.
|
void |
start()
Starts the Ssh tunneler service
|
void |
stop()
Stops the ssh tunneler service.
|
public SshTunneler(int portLocal,
SshParameters params,
java.lang.String remoteIp,
int remotePort)
portLocal - The port local will be listened by the service.params - Ssh connection parameters.remoteIp - Remote host ip.remotePort - Remote port.public void start()
throws java.lang.Exception
java.lang.Exception - If an error occurspublic void stop()
throws java.lang.Exception
java.lang.Exception - If an error occurs.public void serviceEnded(SshTunnelerEvent event)
Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved