| ewmscp
    ..
    | 
#include <libsshCommon.h>
| Classes | |
| class | sshOptions | 
| Public Member Functions | |
| void | reconnectSessions () | 
| template<typename T > | |
| std::unique_ptr< T, void(*)(T *)> | getUniquePtr (T *obj, void(*deleter)(T *)) | 
| libsshCommon (sshOptions &aOpt) | |
| ~libsshCommon () override | |
| bool | pathExists (const std::string &path) override | 
| std::unique_ptr< const genericStat > | getStat (const std::string &path, bool followLink) override | 
| const sftp_statvfs_struct & | getVfsStat (const std::string &path) | 
|  Public Member Functions inherited from pathHandler | |
| virtual | ~pathHandler ()=default | 
| virtual std::string | getXattr (const std::string &, const std::string &) | 
| Public Attributes | |
| ssh_session | session | 
| sftp_session | sftp | 
| Protected Member Functions | |
| void | openSessions () | 
| void | closeSessions () | 
| Protected Attributes | |
| sshOptions & | opt | 
| bool | reconnecting | 
Definition at line 25 of file libsshCommon.h.
| libsshCommon::libsshCommon | ( | sshOptions & | aOpt | ) | 
Definition at line 113 of file libsshCommon.cpp.
References openSessions().
| 
 | override | 
Definition at line 116 of file libsshCommon.cpp.
References closeSessions().
| 
 | protected | 
Definition at line 91 of file libsshCommon.cpp.
Referenced by reconnectSessions(), and ~libsshCommon().
| 
 | overridevirtual | 
Implements pathHandler.
Definition at line 130 of file libsshCommon.cpp.
References throwcall::sftp::badval(), getVfsStat(), sftp, and timerInst.
| 
 | inline | 
Definition at line 45 of file libsshCommon.h.
Referenced by outputHandler::libssh::ensureParentDirs(), pathExists(), outputHandler::libssh::remove(), and outputHandler::libssh::rename().
| const sftp_statvfs_struct & libsshCommon::getVfsStat | ( | const std::string & | path | ) | 
Definition at line 152 of file libsshCommon.cpp.
References throwcall::sftp::badval(), errMsg::debug, errMsg::emit(), session, sftp, and timerInst.
Referenced by outputHandler::libssh::getMaxNameLength(), getStat(), libsshIoCommon::getStat(), and outputHandler::libssh::rename().
| 
 | protected | 
Definition at line 42 of file libsshCommon.cpp.
References throwcall::badval(), throwcall::ssh::badval(), libsshCommon::sshOptions::configFile, errMsg::debug, errMsg::emit(), options::base::fIsSet(), throwcall::good0(), throwcall::sftp::good0(), throwcall::ssh::good0(), throwcall::ssh::goodval(), libsshCommon::sshOptions::host, libsshCommon::sshOptions::knownHostFile, opt, session, sftp, and libsshCommon::sshOptions::verbosity.
Referenced by libsshCommon(), and reconnectSessions().
| 
 | overridevirtual | 
Implements pathHandler.
Definition at line 120 of file libsshCommon.cpp.
References throwcall::sftp::badval(), getUniquePtr(), and sftp.
Referenced by outputHandler::libssh::renameSimple().
| void libsshCommon::reconnectSessions | ( | ) | 
Definition at line 98 of file libsshCommon.cpp.
References closeSessions(), errMsg::debug, errMsg::emit(), openSessions(), and reconnecting.
Referenced by throwcall::sftp::badval(), throwcall::ssh::badval(), throwcall::sftp::good0(), throwcall::ssh::good0(), and throwcall::ssh::goodval().
| 
 | protected | 
Definition at line 39 of file libsshCommon.h.
Referenced by openSessions().
| 
 | protected | 
Definition at line 42 of file libsshCommon.h.
Referenced by reconnectSessions().
| ssh_session libsshCommon::session | 
Definition at line 27 of file libsshCommon.h.
Referenced by throwcall::sftp::badval(), throwcall::ssh::badval(), closeSessions(), getVfsStat(), throwcall::sftp::good0(), throwcall::ssh::good0(), throwcall::ssh::goodval(), and openSessions().
| sftp_session libsshCommon::sftp | 
Definition at line 28 of file libsshCommon.h.
Referenced by throwcall::sftp::badval(), closeSessions(), outputHandler::libssh::createSymlink(), outputHandler::libssh::ensureParentDirs(), getStat(), getVfsStat(), throwcall::sftp::good0(), openSessions(), pathExists(), inputHandler::libssh::readerLibssh::readerLibssh(), inputHandler::libssh::readLinkTarget(), outputHandler::libssh::remove(), outputHandler::libssh::rename(), outputHandler::libssh::renameSimple(), inputHandler::libssh::SftpDirectory::SftpDirectory(), and outputHandler::libssh::writerLibssh::writerLibssh().
 1.8.17
 1.8.17