Arduino TinyFTP
All Classes Functions Pages
Public Member Functions | Protected Attributes | List of all members
ftp_client::FTPSessionMgr< ClientType > Class Template Reference

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
 

Detailed Description

template<class ClientType>
class ftp_client::FTPSessionMgr< ClientType >

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.

Template Parameters
ClientTypeThe type of client to use for command and data connections. It should be a class that implements the Client interface.
Author
Phil Schatzmann

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