|
libsshpp v0.1.7
Modern C++17 wrapper for libssh
|
Push side of an SCP transfer: scp -t as seen by the client.
More...
#include <scp.hpp>
Public Member Functions | |
| Writer ()=default | |
| Writer (Session &session, const RemotePath &destination_dir, bool recursive) | |
| ~Writer () | |
| Writer (Writer &&) noexcept | |
| Writer & | operator= (Writer &&) noexcept |
| Writer (const Writer &)=delete | |
| operator bool () const noexcept | |
| Result< void > | try_init () |
| Result< void > | try_push_file (std::string_view name, std::uint64_t size, std::filesystem::perms=std::filesystem::perms::owner_read|std::filesystem::perms::owner_write) |
| Result< void > | try_push_directory (std::string_view name, std::filesystem::perms=std::filesystem::perms::owner_all) |
| Result< void > | try_leave_directory () |
| Result< void > | try_write (ByteView) |
| Result< std::uint64_t > | try_write_from (std::istream &, std::uint64_t size, ProgressCallback={}) |
Push side of an SCP transfer: scp -t as seen by the client.
|
default |
| SSHPP_INLINE sshpp::scp::Writer::Writer | ( | Session & | session, |
| const RemotePath & | destination_dir, | ||
| bool | recursive | ||
| ) |
| SSHPP_INLINE sshpp::scp::Writer::~Writer | ( | ) |
|
noexcept |
|
delete |
|
inlineexplicitnoexcept |
| SSHPP_INLINE Result< void > sshpp::scp::Writer::try_init | ( | ) |
| SSHPP_INLINE Result< void > sshpp::scp::Writer::try_push_file | ( | std::string_view | name, |
| std::uint64_t | size, | ||
| std::filesystem::perms | perms = std::filesystem::perms::owner_read | std::filesystem::perms::owner_write |
||
| ) |
| SSHPP_INLINE Result< void > sshpp::scp::Writer::try_push_directory | ( | std::string_view | name, |
| std::filesystem::perms | perms = std::filesystem::perms::owner_all |
||
| ) |
| SSHPP_INLINE Result< void > sshpp::scp::Writer::try_leave_directory | ( | ) |
| SSHPP_INLINE Result< std::uint64_t > sshpp::scp::Writer::try_write_from | ( | std::istream & | in, |
| std::uint64_t | size, | ||
| ProgressCallback | progress = {} |
||
| ) |