146#define FTPD_RUNNING (2)
147#define FTPD_NOT_RUNNING (3)
148#define FTPD_LISTEN_ERR (4)
155#define FTPD_FILE_SIZE_NOSUCH_FILE (-1)
156#define FTPD_FILE_SIZE_UNKNOWN (0)
165#ifdef FTPD_SSL_SUPPORT
183int FTPDStartSSL(uint16_t port, uint8_t server_priority,
bool enableFTPS =
false,
bool encryptData =
false);
395int FTPD_FileExists(
const char *full_directory,
const char *file_name,
void *pSession);
482int FTPD_DeleteFile(
const char *current_directory,
const char *file_name,
void *pSession);
499int FTPD_Rename(
const char *current_directory,
const char *cur_file_name,
const char *new_file_name,
void *pSession);
Used to store and manipulate IPv4 addresses in dual stack mode.
Definition nettypes.h:225
void FTPDSessionEnd(void *pSession)
Indicate an FTP user session will be terminated.
Definition _common/EFFS/FAT/src/ftp_f.cpp:186
int FTPD_FileExists(const char *full_directory, const char *file_name, void *pSession)
Report on whether or not a file exists.
Definition _common/EFFS/FAT/src/ftp_f.cpp:309
int FTPD_ListSubDirectories(const char *current_directory, void *pSession, FTPDCallBackReportFunct *pFunc, int handle)
Called by the FTP Server to list all subdirectories under the current directory.
Definition _common/EFFS/FAT/src/ftp_f.cpp:273
int FTPD_ListFile(const char *current_directory, void *pSession, FTPDCallBackReportFunct *pFunc, int handle)
Lists all files in the current directory.
Definition _common/EFFS/FAT/src/ftp_f.cpp:696
int FTPDStartSSL(uint16_t port, uint8_t server_priority, bool enableFTPS=false, bool encryptData=false)
Starts the FTP Server task with SSL/TLS support.
int FTPD_GetFileFromClient(const char *full_directory, const char *file_name, void *pSession, int fd)
Receive a file from the FTP client.
Definition _common/EFFS/FAT/src/ftp_f.cpp:571
int FTPD_AbleToCreateFile(const char *full_directory, const char *file_name, void *pSession)
Report on the ability to create/receive a file.
Definition _common/EFFS/FAT/src/ftp_f.cpp:563
int FTPD_DirectoryExists(const char *full_directory, void *pSession)
Called by the FTP Server to test for the existence of a directory.
Definition _common/EFFS/FAT/src/ftp_f.cpp:191
int FTPD_SendFileToClient(const char *full_directory, const char *file_name, void *pSession, int fd)
Send the contents of a file to a file descriptor.
Definition _common/EFFS/FAT/src/ftp_f.cpp:401
int FTPDStart(uint16_t port, uint8_t server_priority)
Starts the FTP Server task (non-SSL/TLS).
int FTPD_DeleteSubDirectory(const char *current_directory, const char *sub_dir, void *pSession)
Called by the FTP Server to delete a directory.
Definition _common/EFFS/FAT/src/ftp_f.cpp:244
void * FTPDSessionStart(const char *user, const char *passwd, const IPADDR4 hi_ip)
Start an FTP user session.
Definition _common/EFFS/FAT/src/ftp_f.cpp:164
int FTPD_GetFileSize(const char *full_directory, const char *file_name)
Returns the size of a specific file.
Definition _common/EFFS/FAT/src/ftp_f.cpp:367
int FTPD_Rename(const char *current_directory, const char *cur_file_name, const char *new_file_name, void *pSession)
Rename a file.
Definition _common/EFFS/FAT/src/ftp_f.cpp:740
int FTPD_DeleteFile(const char *current_directory, const char *file_name, void *pSession)
Delete a file.
Definition _common/EFFS/FAT/src/ftp_f.cpp:673
int FTPDStopReq()
Stops the FTP Server task.
int FTPD_CreateSubDirectory(const char *current_directory, const char *new_dir, void *pSession)
Called by the FTP Server to create a directory.
Definition _common/EFFS/FAT/src/ftp_f.cpp:215
void FTPDCallBackReportFunct(int handle, const char *name_to_report)
FTP Session callback typedef.
Definition ftpd.h:228