|
libsshpp v0.1.7
Modern C++17 wrapper for libssh
|
Classes | |
| class | HandlerBridge |
| class | SessionCore |
| class | UniqueHandle |
| Zero-overhead move-only owner for a libssh C handle. See docs/design/02 ยง2.2. More... | |
Typedefs | |
| using | SessionCorePtr = std::shared_ptr< SessionCore > |
Functions | |
| ErrorInfo | make_error_info (native_session session, const char *operation, SourceLocation where, errc fallback=errc::unknown) |
| errc | errc_from_auth_result (int auth_result) noexcept |
| Maps a raw SSH_AUTH_* result to sshpp::errc for error paths (success/partial are not errors). | |
| ErrorInfo | make_sftp_error_info (native_sftp sftp, native_session session, const char *operation, SourceLocation where) |
| Snapshots sftp_get_error()/ssh_get_error() for an SFTP failure into an ErrorInfo. | |
| using sshpp::detail::SessionCorePtr = typedef std::shared_ptr<SessionCore> |
| SSHPP_INLINE ErrorInfo sshpp::detail::make_error_info | ( | native_session | session, |
| const char * | operation, | ||
| SourceLocation | where, | ||
| errc | fallback = errc::unknown |
||
| ) |
Snapshots ssh_get_error()/ssh_get_error_code() for session into an ErrorInfo, mapping the libssh error code to the closest sshpp::errc.
|
noexcept |
Maps a raw SSH_AUTH_* result to sshpp::errc for error paths (success/partial are not errors).
| SSHPP_INLINE ErrorInfo sshpp::detail::make_sftp_error_info | ( | native_sftp | sftp, |
| native_session | session, | ||
| const char * | operation, | ||
| SourceLocation | where | ||
| ) |
Snapshots sftp_get_error()/ssh_get_error() for an SFTP failure into an ErrorInfo.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |