#include <FTPServer.h>
Public Member Functions | |
void | onStoreStart (std::string fileName) override |
size_t | onStoreData (uint8_t *data, size_t size) override |
void | onStoreEnd () override |
void | onRetrieveStart (std::string fileName) override |
size_t | onRetrieveData (uint8_t *data, size_t size) override |
void | onRetrieveEnd () override |
std::string | onDir () override |
An implementation of FTPCallbacks that uses Posix File I/O to perform file access.
|
overridevirtual |
Return a list of files in the file system.
Reimplemented from FTPCallbacks.
|
overridevirtual |
Called when the client is ready to receive the next piece of the file. To indicate that there is no more data to send, return a size of 0.
data | The data buffer that we can fill to return data back to the client. |
size | The maximum size of the data buffer that we can populate. |
Reimplemented from FTPCallbacks.
|
overridevirtual |
Called when the retrieval has been completed.
Reimplemented from FTPCallbacks.
|
overridevirtual |
Called when the client requests retrieval of a file.
Reimplemented from FTPCallbacks.
|
overridevirtual |
Called when the client presents a new chunk of data to be saved.
Reimplemented from FTPCallbacks.
|
overridevirtual |
Called at the end of a STOR request. This indicates that the client has completed its transmission of the file.
Reimplemented from FTPCallbacks.
|
overridevirtual |
Called at the start of a STOR request. The file name is the name of the file the client would like to save.
Reimplemented from FTPCallbacks.