|
| SshTunnel (std::string gateway, std::string host, unsigned short port, unsigned timeOutInSeconds=0) |
|
| SshTunnel (std::string gateway, std::string host, unsigned short port, unsigned short hostPort, unsigned timeOutInSeconds=0) |
|
| SshTunnel (std::string host, unsigned short port, unsigned timeOutInSeconds=0) |
|
| SshTunnel (std::string host, unsigned short port, unsigned short hostPort, unsigned timeOutInSeconds=0) |
|
virtual | ~SshTunnel () |
|
bool | succeeded () |
|
std::string | error () |
|
SshTunnel::SshTunnel |
( |
std::string |
gateway, |
|
|
std::string |
host, |
|
|
unsigned short |
port, |
|
|
unsigned |
timeOutInSeconds = 0 |
|
) |
| |
....................................................................... Constructor to ssh tunnel to a port (port) on a machine (host) behind a gateway (gateway) machine. If there is no gateway between us and the host, use the next constructor, or specify the same argument for both
SshTunnel::SshTunnel |
( |
std::string |
gateway, |
|
|
std::string |
host, |
|
|
unsigned short |
port, |
|
|
unsigned short |
hostPort, |
|
|
unsigned |
timeOutInSeconds = 0 |
|
) |
| |
....................................................................... Constructor to ssh tunnel to a port (port) on a machine (host) behind a gateway (gateway) machine. If there is no gateway between us and the host, use the next constructor, or specify the same argument for both.
SshTunnel::SshTunnel |
( |
std::string |
host, |
|
|
unsigned short |
port, |
|
|
unsigned |
timeOutInSeconds = 0 |
|
) |
| |
....................................................................... Constructor to tunnel to a port on the specified machine
SshTunnel::SshTunnel |
( |
std::string |
host, |
|
|
unsigned short |
port, |
|
|
unsigned short |
hostPort, |
|
|
unsigned |
timeOutInSeconds = 0 |
|
) |
| |
....................................................................... Constructor to tunnel to a port on the specified machine
SshTunnel::~SshTunnel |
( |
| ) |
|
|
virtual |
Destructor.
....................................................................... Destructor.
bool SshTunnel::succeeded |
( |
| ) |
|
....................................................................... Return true if the tunnel succeeded
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
SshTunnel & |
obj |
|
) |
| |
|
friend |
The documentation for this class was generated from the following files:
- gcpCbass/util/common/SshTunnel.h
- gcpCbass/util/common/SshTunnel.cc