libsshpp v0.1.7
Modern C++17 wrapper for libssh
Loading...
Searching...
No Matches
scp.hpp File Reference
#include <sshpp/config.hpp>
#include <sshpp/detail/native_fwd.hpp>
#include <sshpp/detail/session_core.hpp>
#include <sshpp/export.hpp>
#include <sshpp/fwd.hpp>
#include <sshpp/result.hpp>
#include <sshpp/types.hpp>
#include <cstdint>
#include <filesystem>
#include <functional>
#include <iosfwd>
#include <optional>
#include <string>
Include dependency graph for scp.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sshpp::scp::Request
 
struct  sshpp::scp::Progress
 
class  sshpp::scp::Reader
 Pull side of an SCP transfer: scp -f as seen by the client. More...
 
class  sshpp::scp::Writer
 Push side of an SCP transfer: scp -t as seen by the client. More...
 

Namespaces

namespace  sshpp
 
namespace  sshpp::scp
 

Typedefs

using sshpp::scp::ProgressCallback = std::function< bool(const Progress &)>
 Return false to abort the transfer (yields errc::cancelled).
 

Enumerations

enum class  sshpp::scp::Mode { sshpp::scp::read , sshpp::scp::write , sshpp::scp::read_recursive , sshpp::scp::write_recursive }
 
enum class  sshpp::scp::RequestType {
  sshpp::scp::new_file , sshpp::scp::new_directory , sshpp::scp::end_directory , sshpp::scp::eof ,
  sshpp::scp::warning
}
 

Functions

SSHPP_INLINE Result< std::uint64_t > sshpp::scp::try_download (Session &session, const RemotePath &remote, const std::filesystem::path &local, ProgressCallback progress)
 
SSHPP_INLINE Result< std::uint64_t > sshpp::scp::try_upload (Session &session, const std::filesystem::path &local, const RemotePath &remote, ProgressCallback progress)