|
libsshpp v0.1.7
Modern C++17 wrapper for libssh
|
#include <library.hpp>
Classes | |
| struct | Config |
Public Types | |
| using | DestructorErrorHandler = std::function< void(const ErrorInfo &)> |
Public Member Functions | |
| Library () | |
| Library (const Config &) | |
| ~Library () | |
| Library (const Library &) | |
| Library & | operator= (const Library &) |
| Library (Library &&) noexcept | |
| Library & | operator= (Library &&) noexcept |
Static Public Member Functions | |
| static bool | initialized () noexcept |
| static Features | features () |
| static std::string | version_string () |
| static void | set_log_level (LogLevel) |
| static LogLevel | log_level () noexcept |
| static void | set_log_callback (LogCallback) |
| static void | set_destructor_error_handler (DestructorErrorHandler) |
| static void | report_destructor_error (ErrorInfo) noexcept |
RAII guard around ssh_init()/ssh_finalize(). Reference-counted and thread-safe. At least one instance must be alive for the whole time any other sshpp object exists. See docs/design/04 ยง4.1.
| using sshpp::Library::DestructorErrorHandler = std::function<void(const ErrorInfo&)> |
| SSHPP_INLINE sshpp::Library::Library | ( | ) |
|
explicit |
| SSHPP_INLINE sshpp::Library::~Library | ( | ) |
| SSHPP_INLINE sshpp::Library::Library | ( | const Library & | ) |
|
noexcept |
|
staticnoexcept |
|
static |
|
static |
|
static |
|
staticnoexcept |
|
static |
|
static |
|
staticnoexcept |
Invokes the installed destructor-error handler (or does nothing by default). Used internally by other wrapper destructors that cannot throw.