Defines | |
#define | FTP_COMMAND_PORT (21ul) |
#define | FTP_DATA_PORT (20ul) |
#define | FTP_TIMEOUT ((TICK16)180ul * (TICK16)TICKS_PER_SECOND) |
#define | FTP_USER_NAME_LEN (9ul) |
#define | MAX_FTP_ARGS (7ul) |
#define | MAX_FTP_CMD_STRING_LEN (31ul) |
Functions | |
void | FTPInit (void) |
BOOL | FTPServer (void) |
BOOL | FTPVerify (char *login, char *password) |
//********************************************************************* //-------------------- FTP Configuration -------------------- //********************************************************************* //General configuration data #define FTP_COMMAND_PORT (21ul) #define FTP_DATA_PORT (20ul) #define FTP_TIMEOUT (TICK)((TICK)180 * TICK_SECOND) #define MAX_FTP_ARGS (7ul) #define MAX_FTP_CMD_STRING_LEN (31ul) //Configure FTP mudule to have PUT #define FTP_PUT_ENABLED
#define FTP_COMMAND_PORT (21ul) |
#define FTP_DATA_PORT (20ul) |
#define FTP_TIMEOUT ((TICK16)180ul * (TICK16)TICKS_PER_SECOND) |
#define FTP_USER_NAME_LEN (9ul) |
#define MAX_FTP_ARGS (7ul) |
#define MAX_FTP_CMD_STRING_LEN (31ul) |
void FTPInit | ( | void | ) |
Initializes internal variables of Telnet
BOOL FTPServer | ( | void | ) |
This function acts as a task (similar to one in RTOS). This function performs its task in co-operative manner. Main application must call this function repeatdly to ensure all open or new connections are served on time.
BOOL FTPVerify | ( | char * | login, | |
char * | password | |||
) |
Compare given login and password with internal values and return TRUE or FALSE. This is a callback from Telnet Server to user application. User application must implement this function in his/her source file return correct response based on internal login and password information.
login | Telnet User login name | |
password | Telnet User password |