LogService
libdadi: utility tools for distributed applications
 All Classes Functions Variables
Public Member Functions | List of all members
SSHTunnel Class Reference
Inheritance diagram for SSHTunnel:
SSHConnection

Public Member Functions

 SSHTunnel (const std::string &sshHost, const std::string &remoteHost, const std::string &localPortFrom, const std::string &remotePortTo, const std::string &remotePortFrom, const std::string &localPortTo, const bool createTo=true, const bool createFrom=true, const std::string &sshPath="/usr/bin/ssh", const std::string &sshPort="22", const std::string &login=userLogin(), const std::string &keyPath=userKey())
 SSHTunnel (const std::string &sshHost, const std::string &remoteHost, const std::string &localPortFrom, const std::string &remotePortTo, const bool createTo=true, const std::string &sshPath="/usr/bin/ssh", const std::string &serverPort="22", const std::string &login=userLogin(), const std::string &keyPath=userKey())
void open ()
void close ()
const std::string & getRemoteHost () const
int getLocalPortFrom () const
int getLocalPortTo () const
int getRemotePortFrom () const
int getRemotePortTo () const
void setRemoteHost (const std::string &host)
void setLocalPortFrom (const std::string &port)
void setLocalPortFrom (const int port)
void setRemotePortTo (const std::string &port)
void setRemotePortTo (const int port)
void setRemotePortFrom (const std::string &port)
void setRemotePortFrom (const int port)
void setLocalPortTo (const std::string &port)
void setLocalPortTo (const int port)
void setWaitingTime (const unsigned int time)
void createTunnelTo (const bool create)
void createTunnelFrom (const bool create)
- Public Member Functions inherited from SSHConnection
 SSHConnection (const std::string &sshHost, const std::string &sshPort, const std::string &login, const std::string &keyPath, const std::string &sshPath)
const std::string & getSshHost () const
const std::string & getSshPath () const
const std::string & getSshPort () const
const std::string & getSshLogin () const
const std::string & getSshKeyPath () const
const std::string & getSshOptions () const
void setSshHost (const std::string &host)
void setSshPath (const std::string &path)
void setSshPort (const std::string &port)
void setSshPort (const int port)
void setSshLogin (const std::string &login)
void setSshKeyPath (const std::string &path)
void setSshOptions (const std::string &options)

Additional Inherited Members

- Static Protected Member Functions inherited from SSHConnection
static std::string userLogin ()
static std::string userKey ()

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