ftplib.h File Reference

FTP protocol library prototypes. More...

Data Structures

struct  FTP_client_type
 Used for information about current FTP connection. More...
 
struct  ftp_return_type
 FTP server return structure. More...
 

Macros

#define FTP_NO_LIMIT   _MAKE_32(0)
 
#define FTP_NO_ERROR   _MAKE_32(0)
 
#define FTP_LOGIN_OK   _MAKE_32(230)
 
#define FTP_TRANSFER_OK   _MAKE_32(226)
 
#define FTP_TRANSFER_PORT_IN_USE   _MAKE_32(425)
 
#define FTP_TRANSFER_INVALID   _MAKE_32(500)
 
#define FTP_DATA_PORT   0x14
 
#define FTP_CONTROL_PORT   0x15
 
#define NULLCHAR   '\0'
 
#define FTP_PASS_CMD
 
#define FTP_DELE_CMD
 
#define FTP_QUIT_CMD
 
#define FTP_STOR_CMD
 
#define FTP_BOOT_CMD
 

Functions

int32_t ftp_server_init (user_type *user, void *(*fat_init_ftp)(void), int32_t max_connections)
 Initialize FTP server. More...
 
void ftp_server_timeout (uint32_t timeout)
 Set a FTP server timeout for inactive connection. More...
 
ftp_return_typeftp_server (void)
 The main polling function for concurrent FTP server. More...
 
uint32_t ftp_is_server_connected (void)
 Test if clients are connected. More...
 
void ftp_set_passive_mode (uint16_t mode)
 Activate passive mode for FTP server. More...
 
FTP_client_typeFTP_get_control (char *ftp_server, user_type *user)
 Allocate FTP client structure and control buffer. More...
 
int32_t FTP_free_control (FTP_client_type *FTP_client)
 Close control structure and free all associated buffers. More...
 
int32_t FTP_send_control (FTP_client_type *FTP_client, char *command)
 Send a FTP control message. More...
 
int32_t FTP_get_reply_code (FTP_client_type *FTP_client)
 Wait for reply code from FTP server. More...
 
int32_t FTP_connect (FTP_client_type *FTP_client, int32_t connect_timeout)
 Connect to FTP server. More...
 
int32_t FTP_server_login (FTP_client_type *FTP_client)
 Perform FTP server login. More...
 
int32_t FTP_server_logout (FTP_client_type *FTP_client)
 Logout from FTP server. More...
 
int32_t FTP_set_file_buffer (FTP_client_type *FTP_client, char *buffer, int32_t size)
 Set user buffer for file transfer. More...
 
int32_t FTP_retrieve_file (FTP_client_type *FTP_client, char *file_name, char type)
 Retrieve a file from FTP server. More...
 
int32_t FTP_store_file (FTP_client_type *FTP_client, char *file_name, char type)
 Send file to FTP server. More...
 

Detailed Description

                          _         _             _
                       __| |    ___(_) ____ _ __ | |_
                      / _` |   / __| |/ _` | '_ \| __|
                     | (_| | _ \__ \ | (_| | | | | |_
                      \__,_|(_) ___/_|\__, |_| |_|\__|
                     Signalprocessing |___/ Technology
Author
D.SignT GmbH & Co. KG, Claus Hermbusche
Version
2.91.3
Date
2019-05-22
Target Platform:
DSK-91C111, EVM DM642, DSK6455, EVM6437, EVM6737, D.Module.8900, D.Module.91C111, D.Module2.DM642, D.Module2.C6747, several custom boards

Macro Definition Documentation

#define FTP_PASS_CMD
Examples:
FTPServer.c.
#define FTP_DELE_CMD
Examples:
FTPServer.c.
#define FTP_QUIT_CMD
Examples:
FTPServer.c.
#define FTP_STOR_CMD
Examples:
FTPServer.c.
#define FTP_BOOT_CMD
Examples:
FTPServer.c.