FTPSession This class manages the FTP session, including command and data connections. It provides methods to initialize the session, open data connections, and manage the session lifecycle.
More...
#include <FTPSession.h>
|
bool | begin (IPAddress &address, int port, const char *username, const char *password) |
| Initializes the session with the command client.
|
|
void | end () |
|
FTPBasicAPI & | api () |
| Returns the access to the basic API.
|
|
| operator bool () |
| Returns true if the command client is connected.
|
|
void | setValid (bool valid) |
| Used to set as invalid for dummy error session.
|
|
|
void | closeCommand () |
|
void | closeData () |
|
|
ClientType | command_client |
|
ClientType | data_client |
|
FTPBasicAPI | basic_api |
|
bool | is_valid = true |
|
template<class ClientType>
class ftp_client::FTPSession< ClientType >
FTPSession This class manages the FTP session, including command and data connections. It provides methods to initialize the session, open data connections, and manage the session lifecycle.
- Note
- The class is designed to be used in an Arduino environment, where the Client interface is typically implemented by network libraries such as WiFi or Ethernet.
- Template Parameters
-
ClientType | The 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: