#include <FtpServerConnection.h>
◆ FtpServerConnection()
FtpServerConnection::FtpServerConnection |
( |
FtpServer * |
parentServer, |
|
|
tcp_pcb * |
clientTcp |
|
) |
| |
|
inline |
◆ close()
virtual void TcpConnection::close |
( |
| ) |
|
|
virtualinherited |
◆ cmdPort()
void FtpServerConnection::cmdPort |
( |
const String & |
data | ) |
|
|
protected |
◆ connect() [1/2]
virtual bool TcpConnection::connect |
( |
const String & |
server, |
|
|
int |
port, |
|
|
bool |
useSsl = false |
|
) |
| |
|
virtualinherited |
◆ connect() [2/2]
◆ createDataConnection()
void FtpServerConnection::createDataConnection |
( |
TcpConnection * |
connection | ) |
|
|
protected |
◆ dataTransferFinished()
void FtpServerConnection::dataTransferFinished |
( |
TcpConnection * |
connection | ) |
|
◆ flush()
void TcpConnection::flush |
( |
| ) |
|
|
inherited |
◆ getAvailableWriteSize()
uint16_t TcpConnection::getAvailableWriteSize |
( |
| ) |
|
|
inlineinherited |
◆ getRemoteIp()
IpAddress TcpConnection::getRemoteIp |
( |
| ) |
const |
|
inlineinherited |
◆ getRemotePort()
uint16_t TcpConnection::getRemotePort |
( |
| ) |
const |
|
inlineinherited |
◆ getSplitterPos()
int FtpServerConnection::getSplitterPos |
( |
const String & |
data, |
|
|
char |
splitter, |
|
|
uint8_t |
number |
|
) |
| |
|
protected |
◆ 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 |
◆ isCanTransfer()
bool FtpServerConnection::isCanTransfer |
( |
| ) |
|
|
inlineprotected |
◆ makeFileName()
◆ onCommand()
virtual void FtpServerConnection::onCommand |
( |
String |
cmd, |
|
|
String |
data |
|
) |
| |
|
protectedvirtual |
◆ onConnected()
virtual err_t TcpConnection::onConnected |
( |
err_t |
err | ) |
|
|
protectedvirtualinherited |
◆ onError()
virtual void TcpConnection::onError |
( |
err_t |
err | ) |
|
|
protectedvirtualinherited |
◆ onPoll()
virtual err_t TcpConnection::onPoll |
( |
| ) |
|
|
protectedvirtualinherited |
◆ onReadyToSendData()
◆ onReceive()
err_t FtpServerConnection::onReceive |
( |
pbuf * |
buf | ) |
|
|
overridevirtual |
◆ onSent()
err_t FtpServerConnection::onSent |
( |
uint16_t |
len | ) |
|
|
overridevirtual |
◆ response()
virtual void FtpServerConnection::response |
( |
int |
code, |
|
|
String |
text = "" |
|
) |
| |
|
protectedvirtual |
◆ 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.
◆ trySend()
◆ write() [1/2]
virtual int TcpConnection::write |
( |
const char * |
data, |
|
|
int |
len, |
|
|
uint8_t |
apiflags = TCP_WRITE_FLAG_COPY |
|
) |
| |
|
virtualinherited |
Base write operation.
- Parameters
-
data | |
len | |
apiflags | TCP_WRITE_FLAG_COPY, TCP_WRITE_FLAG_MORE |
- Return values
-
Reimplemented in FtpDataStream.
◆ 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 |
◆ FtpDataStream
◆ FtpServer
◆ autoSelfDestruct
bool TcpConnection::autoSelfDestruct = true |
|
protectedinherited |
◆ canSend
bool TcpConnection::canSend = true |
|
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 |
The documentation for this class was generated from the following file: