|
libsshpp v0.1.7
Modern C++17 wrapper for libssh
|
Pull side of an SCP transfer: scp -f as seen by the client.
More...
#include <scp.hpp>
Public Member Functions | |
| Reader ()=default | |
| Reader (Session &session, const RemotePath &location, bool recursive) | |
| ~Reader () | |
| Reader (Reader &&) noexcept | |
| Reader & | operator= (Reader &&) noexcept |
| Reader (const Reader &)=delete | |
| operator bool () const noexcept | |
| Result< void > | try_init () |
| Result< std::optional< Request > > | try_next () |
| nullopt when the transfer is complete (SSH_SCP_REQUEST_EOF). | |
| Result< void > | try_accept () |
| Result< void > | try_deny (std::string_view reason) |
| Result< std::size_t > | try_read (MutableByteView) |
| Result< std::uint64_t > | try_read_to (std::ostream &, ProgressCallback={}) |
Pull side of an SCP transfer: scp -f as seen by the client.
|
default |
| SSHPP_INLINE sshpp::scp::Reader::Reader | ( | Session & | session, |
| const RemotePath & | location, | ||
| bool | recursive | ||
| ) |
| SSHPP_INLINE sshpp::scp::Reader::~Reader | ( | ) |
|
noexcept |
|
delete |
|
inlineexplicitnoexcept |
| SSHPP_INLINE Result< void > sshpp::scp::Reader::try_init | ( | ) |
nullopt when the transfer is complete (SSH_SCP_REQUEST_EOF).
| SSHPP_INLINE Result< void > sshpp::scp::Reader::try_accept | ( | ) |
| SSHPP_INLINE Result< void > sshpp::scp::Reader::try_deny | ( | std::string_view | reason | ) |
| SSHPP_INLINE Result< std::size_t > sshpp::scp::Reader::try_read | ( | MutableByteView | buf | ) |
| SSHPP_INLINE Result< std::uint64_t > sshpp::scp::Reader::try_read_to | ( | std::ostream & | out, |
| ProgressCallback | progress = {} |
||
| ) |