/*Server connection*/
static int connectFtpClient(const char* host, uint16_t
port, NetBuf_t** nControl);
static int loginFtpClient(const char* user, const char*
pass, NetBuf_t* nControl);
static void quitFtpClient(NetBuf_t* nControl);
static int setOptionsFtpClient(int opt, long val,
NetBuf_t* nControl);
/*Directory Functions*/
static int changeDirFtpClient(const char* path, NetBuf_t*
nControl);
static int makeDirFtpClient(const char* path, NetBuf_t*
nControl);
static int removeDirFtpClient(const char* path, NetBuf_t*
nControl);
static int dirFtpClient(const char* outputfile, const
char* path, NetBuf_t* nControl);
static int nlstFtpClient(const char* outputfile, const
char* path,
NetBuf_t*
nControl);
static int mlsdFtpClient(const char* outputfile, const
char* path,
NetBuf_t*
nControl);
static int changeDirUpFtpClient(NetBuf_t* nControl);
static int pwdFtpClient(char* path, int max, NetBuf_t*
nControl);
/*File to File Transfer*/
static int getDataFtpClient(const char* outputfile, const
char* path,
char mode, NetBuf_t* nControl);
static int putDataFtpClient(const char* inputfile, const
char* path, char mode,
NetBuf_t*
nControl);
static int deleteDataFtpClient(const char* fnm, NetBuf_t*
nControl);
static int renameFtpClient(const char* src, const char*
dst, NetBuf_t* nControl);
|