Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
UppHub
Status & Roadmap
FAQ
Authors & License
Forums
Funding U++
Search on this site











SourceForge.net Logo

SourceForge.net Logo

GitHub Logo

Discord Logo

SFtpStream

 

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.

 

Public Method List

 

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.

 

 

Constructor detail

 

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.

 

SFtpFileIn

 

class SFtpFileIn : public SFtpStream

A simple helper class that represents SFtpStream in read mode.

 

Public Method List

 

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.

 

Constructor detail

 

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.

 

SFtpFileOut

 

class SFtpFileOut : public SFtpStream

A simple helper class that represents SFtpStream in write mode.

 

Public Method List

 

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.

 

Constructor detail

 

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.

 

SFtpFileAppend

 

class SFtpFileAppend : public SFtpStream

A simple helper class that represents SFtpStream in append mode.

 

Public Method List

 

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.

 

Constructor detail

 

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.

 

Do you want to contribute?