GATE
gate::net::FtpClient Class Reference
Inheritance diagram for gate::net::FtpClient:
gate::NonCopyable

Public Types

typedef File::Entry Entry
 
typedef File::Properties Properties
 
typedef Delegate2< Entry &, void * > ListCallback
 

Public Member Functions

 FtpClient (String const &server, uint16_t port=GATE_FTPCLIENT_DEFAULT_PORT, String const &user=String(), String const &password=String(), uint32_t flags=0)
 
void listDirectory (String const &path, ListCallback &callback, void *userParam)
 
Map< String, PropertieslistDirectory (String const &path)
 
void createDirectory (String const &parentPath, String const &newDirName)
 
void deleteDirectory (String const &path)
 
void deleteFile (String const &path)
 
void rename (String const &oldPath, String const &newPath)
 
String getCurrentDirectory ()
 
void setCurrentDirectory (String const &path)
 
Stream openStream (String const &path, uint32_t openFlags=Stream::Open_Read)
 
void upload (Stream &sourceStream, String const &destinationPath)
 
void uploadFile (String const &localFilePath, String const &destinationPath)
 
void download (String const &sourcePath, Stream &downloadTo)
 
void downloadFile (String const &sourcePath, String const &downloadToFilePath)
 

Static Public Attributes

static uint32_t const Flag_Passive = GATE_FTPCLIENT_FLAG_PASSIVE
 

The documentation for this class was generated from the following files: