Arduino TinyFTP
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
ftp_client::FTPBasicAPI Class Reference

FTPBasicAPI Implementation of Low Level FTP protocol. In order to simplify the logic we always use Passive FTP where it is our responsibility to open the data conection. More...

#include <FTPBasicAPI.h>

Public Member Functions

bool begin (Client *cmdPar, Client *dataPar, IPAddress &address, int port, const char *username, const char *password)
 
bool quit ()
 
bool connected ()
 
 operator bool ()
 
bool passv ()
 
bool del (const char *file)
 
bool mkdir (const char *dir)
 
bool rmd (const char *dir)
 
size_t size (const char *file)
 
ObjectType objectType (const char *file)
 
bool abort ()
 
bool binary ()
 
bool ascii ()
 
bool type (const char *txt)
 
Stream * read (const char *file_name)
 
Stream * write (const char *file_name, FileMode mode)
 
Stream * ls (const char *file_name)
 
void closeData ()
 
void setCurrentOperation (CurrentOperation op)
 
CurrentOperation currentOperation ()
 
void flush ()
 
bool checkResult (const char *expected[], const char *command, bool wait_for_data=true)
 
bool cmd (const char *command, const char *par, const char *expected, bool wait_for_data=true)
 
bool cmd (const char *command_str, const char *par, const char *expected[], bool wait_for_data=true)
 
void setUseTypeCommand (bool useType)
 

Protected Member Functions

bool connect (IPAddress adr, int port, Client *client_ptr, bool doCheckResult=false)
 

Protected Attributes

CurrentOperation current_operation = NOP
 
Clientcommand_ptr = nullptr
 
Clientdata_ptr = nullptr
 
IPAddress remote_address
 
bool is_open = false
 
bool use_type = false
 
char result_reply [100]
 

Friends

class FTPFile
 

Detailed Description

FTPBasicAPI Implementation of Low Level FTP protocol. In order to simplify the logic we always use Passive FTP where it is our responsibility to open the data conection.

Author
Phil Schatzmann

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