My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::SshTunnel Class Reference

Public Member Functions

 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 ()
 

Friends

std::ostream & operator<< (std::ostream &os, SshTunnel &obj)
 

Constructor & Destructor Documentation

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.

Member Function Documentation

bool SshTunnel::succeeded ( )

....................................................................... Return true if the tunnel succeeded

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
SshTunnel obj 
)
friend

Output Operator.


The documentation for this class was generated from the following files: