class SFtpStream : public BlockStream
This class implements the operations needed to manage streams that are able to read and write blocks of data from the SFtp file system objects.at random position.
operator bool() const
Returns true if the stream is open.
bool Open(SFtp& sftp, const char *filename, dword mode, int acm = 0644)
Opens a remote file system object pointed by filename in specified mode (as defined in BlockStream), and with specific POSIX access rights. Returns true on success. Requires a valid sftp object.
SFtpHandle GetHandle() const
Returns the associated sftp file handle.
SFtpStream(SFtp& sftp, const char *filename, dword mode, int acm = 0644)
Creates a block stream representing a remote file system object pointed by filename in specified mode (as defined in BlockStream), and with specific POSIX access rights. Requires a valid sftp object.
SFtpStream()
Default constructor.
class SFtpFileIn : public SFtpStream
A simple helper class that represents SFtpStream in read mode.
bool Open(SFtp& sftp, const char *filename)
Opens a remote file system object with filename for reading with specific POSIX access rights. Returns true on success. Requires a valid sftp object.
SFtpFileIn(SFtp& sftp, const char *filename)
Opens a remote file system object with filename for reading with specific POSIX access rights. Requires a valid sftp object.
SFtpFileIn()
Default constructor.
class SFtpFileOut : public SFtpStream
A simple helper class that represents SFtpStream in write mode.
bool Open(SFtp& sftp, const char *filename, int acm = 0644)
Opens a remote file system object with filename for writing with specific POSIX access rights. Returns true on success. Requires a valid sftp object.
SFtpFileOut(SFtp& sftp, const char *filename)
Opens a remote file system object with filename for writing with specific POSIX access rights. Requires a valid sftp object.
SFtpFileOut()
Default constructor.
class SFtpFileAppend : public SFtpStream
A simple helper class that represents SFtpStream in append mode.
bool Open(SFtp& sftp, const char *filename)
Opens a remote file system object with filename for appending with specific POSIX access rights. Returns true on success. Requires a valid sftp object.
SFtpFileAppend(SFtp& sftp, const char *filename)
Opens a remote file system object with filename for appending with specific POSIX access rights. Requires a valid sftp object.
SFtpFileAppend()
Default constructor.
|