|
Arduino TinyFTP
|
FTPSessionMgr This class manages multiple FTP sessions, allowing for concurrent operations and session reuse. It provides methods to begin a session, end all sessions, and retrieve an available session for FTP operations. More...
#include <FTPSessionMgr.h>
Public Member Functions | |
| bool | begin (IPAddress &address, int port, const char *username, const char *password) |
| Initializes the session manager with the FTP server details. | |
| void | end () |
| FTPSession< ClientType > & | session () |
| Provides a session for the FTP operations. | |
| bool | abort (CurrentOperation op) |
| Aborts the current operation in all sessions. | |
| int | count () |
| Count the sessions. | |
| int | count (CurrentOperation op) |
| Count the sessions with a specific current operation. | |
Protected Attributes | |
| FTPSession< ClientType > * | sessions [FTP_MAX_SESSIONS] = {nullptr} |
| IPAddress | address |
| int | port |
| const char * | username |
| const char * | password |
FTPSessionMgr This class manages multiple FTP sessions, allowing for concurrent operations and session reuse. It provides methods to begin a session, end all sessions, and retrieve an available session for FTP operations.
| ClientType | The type of client to use for command and data connections. It should be a class that implements the Client interface. |