#include <FtpDataStore.h>
|
| FtpDataStore (FtpServerConnection *connection, const String &fileName) |
|
| ~FtpDataStore () |
|
err_t | onReceive (pbuf *buf) override |
|
err_t | onConnected (err_t err) override |
|
err_t | onSent (uint16_t len) override |
|
void | finishTransfer () |
|
void | response (int code, String text=nullptr) |
|
int | write (const char *data, int len, uint8_t apiflags=0) override |
| Base write operation. More...
|
|
int | write (IDataSourceStream *stream) |
|
void | onReadyToSendData (TcpConnectionEvent sourceEvent) override |
|
virtual void | transferData (TcpConnectionEvent sourceEvent) |
|
virtual bool | connect (const String &server, int port, bool useSsl=false) |
|
virtual bool | connect (IpAddress addr, uint16_t port, bool useSsl=false) |
|
virtual void | close () |
|
int | writeString (const char *data, uint8_t apiflags=TCP_WRITE_FLAG_COPY) |
|
int | writeString (const String &data, uint8_t apiflags=TCP_WRITE_FLAG_COPY) |
|
uint16_t | getAvailableWriteSize () |
|
void | flush () |
|
void | setTimeOut (uint16_t waitTimeOut) |
|
IpAddress | getRemoteIp () const |
|
uint16_t | getRemotePort () const |
|
void | setDestroyedDelegate (TcpConnectionDestroyedDelegate destroyedDelegate) |
| Sets a callback to be called when the object instance is destroyed. More...
|
|
void | setSslInitHandler (Ssl::Session::InitDelegate handler) |
| Set the SSL session initialisation callback. More...
|
|
bool | setSslConnection (Ssl::Connection *connection) |
|
Ssl::Session * | getSsl () |
| Get a pointer to the current SSL session object. More...
|
|
◆ FtpDataStore()
◆ ~FtpDataStore()
FtpDataStore::~FtpDataStore |
( |
| ) |
|
|
inline |
◆ close()
virtual void TcpConnection::close |
( |
| ) |
|
|
virtualinherited |
◆ connect() [1/2]
virtual bool TcpConnection::connect |
( |
const String & |
server, |
|
|
int |
port, |
|
|
bool |
useSsl = false |
|
) |
| |
|
virtualinherited |
◆ connect() [2/2]
◆ finishTransfer()
void FtpDataStream::finishTransfer |
( |
| ) |
|
|
inlineinherited |
◆ flush()
void TcpConnection::flush |
( |
| ) |
|
|
inherited |
◆ getAvailableWriteSize()
uint16_t TcpConnection::getAvailableWriteSize |
( |
| ) |
|
|
inlineinherited |
◆ getRemoteIp()
IpAddress TcpConnection::getRemoteIp |
( |
| ) |
const |
|
inlineinherited |
◆ getRemotePort()
uint16_t TcpConnection::getRemotePort |
( |
| ) |
const |
|
inlineinherited |
◆ getSsl()
Get a pointer to the current SSL session object.
Note that this is typically used so we can query properties of an established session. If you need to change session parameters this must be done via setSslInitHandler
.
◆ initialize()
void TcpConnection::initialize |
( |
tcp_pcb * |
pcb | ) |
|
|
protectedinherited |
◆ internalConnect()
◆ internalOnConnected()
err_t TcpConnection::internalOnConnected |
( |
err_t |
err | ) |
|
|
protectedinherited |
◆ internalOnDnsResponse()
void TcpConnection::internalOnDnsResponse |
( |
const char * |
name, |
|
|
LWIP_IP_ADDR_T * |
ipaddr, |
|
|
int |
port |
|
) |
| |
|
protectedinherited |
◆ internalOnError()
void TcpConnection::internalOnError |
( |
err_t |
err | ) |
|
|
protectedinherited |
◆ internalOnPoll()
err_t TcpConnection::internalOnPoll |
( |
| ) |
|
|
protectedinherited |
◆ internalOnReceive()
err_t TcpConnection::internalOnReceive |
( |
pbuf * |
p, |
|
|
err_t |
err |
|
) |
| |
|
protectedinherited |
◆ internalOnSent()
err_t TcpConnection::internalOnSent |
( |
uint16_t |
len | ) |
|
|
protectedinherited |
◆ onConnected()
err_t FtpDataStream::onConnected |
( |
err_t |
err | ) |
|
|
inlineoverridevirtualinherited |
◆ onError()
virtual void TcpConnection::onError |
( |
err_t |
err | ) |
|
|
protectedvirtualinherited |
◆ onPoll()
virtual err_t TcpConnection::onPoll |
( |
| ) |
|
|
protectedvirtualinherited |
◆ onReadyToSendData()
|
inlineoverridevirtualinherited |
◆ onReceive()
err_t FtpDataStore::onReceive |
( |
pbuf * |
buf | ) |
|
|
inlineoverridevirtual |
◆ onSent()
err_t FtpDataStream::onSent |
( |
uint16_t |
len | ) |
|
|
inlineoverridevirtualinherited |
◆ response()
void FtpDataStream::response |
( |
int |
code, |
|
|
String |
text = nullptr |
|
) |
| |
|
inlineinherited |
◆ setDestroyedDelegate()
Sets a callback to be called when the object instance is destroyed.
- Parameters
-
◆ setSslConnection()
◆ setSslInitHandler()
Set the SSL session initialisation callback.
- Parameters
-
◆ setTimeOut()
void TcpConnection::setTimeOut |
( |
uint16_t |
waitTimeOut | ) |
|
|
inherited |
◆ sslCreateSession()
bool TcpConnection::sslCreateSession |
( |
| ) |
|
|
protectedinherited |
◆ sslInitSession()
virtual void TcpConnection::sslInitSession |
( |
Ssl::Session & |
session | ) |
|
|
inlineprotectedvirtualinherited |
Override in inherited classes to perform custom session initialisation.
Called when TCP connection is established before initiating handshake.
Reimplemented in HttpClientConnection.
◆ transferData()
◆ trySend()
◆ write() [1/2]
int FtpDataStream::write |
( |
const char * |
data, |
|
|
int |
len, |
|
|
uint8_t |
apiflags = 0 |
|
) |
| |
|
inlineoverridevirtualinherited |
Base write operation.
- Parameters
-
data | |
len | |
apiflags | TCP_WRITE_FLAG_COPY, TCP_WRITE_FLAG_MORE |
- Return values
-
Reimplemented from TcpConnection.
◆ write() [2/2]
◆ writeString() [1/2]
int TcpConnection::writeString |
( |
const char * |
data, |
|
|
uint8_t |
apiflags = TCP_WRITE_FLAG_COPY |
|
) |
| |
|
inlineinherited |
◆ writeString() [2/2]
int TcpConnection::writeString |
( |
const String & |
data, |
|
|
uint8_t |
apiflags = TCP_WRITE_FLAG_COPY |
|
) |
| |
|
inlineinherited |
◆ autoSelfDestruct
bool TcpConnection::autoSelfDestruct = true |
|
protectedinherited |
◆ canSend
bool TcpConnection::canSend = true |
|
protectedinherited |
◆ completed
bool FtpDataStream::completed = false |
|
protectedinherited |
◆ parent
◆ sent
unsigned FtpDataStream::sent = 0 |
|
protectedinherited |
◆ sleep
◆ ssl
◆ sslInit
◆ tcp
tcp_pcb* TcpConnection::tcp = nullptr |
|
protectedinherited |
◆ timeOut
uint16_t TcpConnection::timeOut = USHRT_MAX |
|
protectedinherited |
By default a TCP connection does not have a time out.
◆ useSsl
bool TcpConnection::useSsl = false |
|
protectedinherited |
◆ written
unsigned FtpDataStream::written = 0 |
|
protectedinherited |
The documentation for this class was generated from the following file: