Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
FTPServerConnection Class Reference
Inheritance diagram for FTPServerConnection:
TcpConnection

Public Member Functions

 FTPServerConnection (FTPServer *parentServer, tcp_pcb *clientTcp)
 
virtual err_t onReceive (pbuf *buf)
 
virtual err_t onSent (uint16_t len)
 
virtual void onReadyToSendData (TcpConnectionEvent sourceEvent)
 
void dataTransferFinished (TcpConnection *connection)
 
virtual bool connect (String server, int port, bool useSsl=false, uint32_t sslOptions=0)
 
virtual bool connect (IPAddress addr, uint16_t port, bool useSsl=false, uint32_t sslOptions=0)
 
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)
 
virtual int write (const char *data, int len, uint8_t apiflags=TCP_WRITE_FLAG_COPY)
 
int write (IDataSourceStream *stream)
 
__forceinline uint16_t getAvailableWriteSize ()
 
void flush ()
 
void setTimeOut (uint16_t waitTimeOut)
 
IPAddress getRemoteIp ()
 
uint16_t getRemotePort ()
 

Protected Member Functions

virtual void onCommand (String cmd, String data)
 
virtual void response (int code, String text="")
 
int getSplitterPos (String data, char splitter, uint8_t number)
 
String makeFileName (String name, bool shortIt)
 
void cmdPort (const String &data)
 
void createDataConnection (TcpConnection *connection)
 
bool isCanTransfer ()
 
bool internalTcpConnect (IPAddress addr, uint16_t port)
 
virtual err_t onConnected (err_t err)
 
virtual err_t onPoll ()
 
virtual void onError (err_t err)
 
void initialize (tcp_pcb *pcb)
 

Static Protected Member Functions

static err_t staticOnConnected (void *arg, tcp_pcb *tcp, err_t err)
 
static err_t staticOnReceive (void *arg, tcp_pcb *tcp, pbuf *p, err_t err)
 
static err_t staticOnSent (void *arg, tcp_pcb *tcp, uint16_t len)
 
static err_t staticOnPoll (void *arg, tcp_pcb *tcp)
 
static void staticOnError (void *arg, err_t err)
 
static void staticDnsResponse (const char *name, ip_addr_t *ipaddr, void *arg)
 
static void closeTcpConnection (tcp_pcb *tpcb)
 

Protected Attributes

tcp_pcb * tcp = NULL
 
uint16_t sleep
 
uint16_t timeOut
 
bool canSend
 
bool autoSelfDestruct
 
bool useSsl = false
 

Friends

class FTPDataStream
 
class FTPServer