#include <ctype.h>#include <stdlib.h>#include "uip.h"#include "ftp.h"#include "../mult/api_services.h"Go to the source code of this file.
Defines | |
| #define | PRINT(x) |
| #define | PRINTLN(x) |
| #define | PRINTNUMLN(x) |
| #define | PRINTNUM(x) |
| #define | CMDSND_NONE 0 |
| #define | CMDSND_CONNECT (CMDSND_NONE + 1) |
| #define | CMDSND_LOGIN (CMDSND_CONNECT + 1) |
| #define | CMDSND_SYST (CMDSND_LOGIN + 1) |
| #define | CMDSND_PORT (CMDSND_SYST + 1) |
| #define | CMDSND_STOR (CMDSND_PORT + 1) |
| #define | CMDSND_QUIT (CMDSND_STOR + 1) |
| #define | CMDSND_PASS (CMDSND_QUIT + 1) |
| #define | ANSRCV_NONE 0 |
| #define | ANSRCV_WELCOME (ANSRCV_NONE + 1) |
| #define | ANSRCV_WELCOMERR (ANSRCV_WELCOME + 1) |
| #define | ANSRCV_LOGGEDIN (ANSRCV_WELCOMERR + 1) |
| #define | ANSRCV_LOGGEDERR (ANSRCV_LOGGEDIN + 1) |
| #define | ANSRCV_SYSTOK (ANSRCV_LOGGEDERR + 1) |
| #define | ANSRCV_SYSTERR (ANSRCV_SYSTOK + 1) |
| #define | ANSRCV_PORTOK (ANSRCV_SYSTERR + 1) |
| #define | ANSRCV_PORTERR (ANSRCV_PORTOK + 1) |
| #define | ANSRCV_STOROK (ANSRCV_PORTERR + 1) |
| #define | ANSRCV_STORERR (ANSRCV_STOROK + 1) |
| #define | ANSRCV_QUITOK (ANSRCV_STORERR + 1) |
| #define | ANSRCV_QUITERR (ANSRCV_QUITOK + 1) |
| #define | ANSRCV_PASSERR (ANSRCV_QUITERR + 1) |
| #define | ANSRCV_PASSREQ (ANSRCV_PASSERR + 1) |
Functions | |
| ftp_cmd_status_t | ftp_connect (arn_CHAR *host, arn_uSHORT rport, struct uip_conn **sconn) |
| ftp_cmd_status_t | ftp_login (const struct uip_conn *sconn, arn_CHAR *username) |
| ftp_cmd_status_t | ftp_password (const struct uip_conn *sconn, arn_CHAR *password) |
| ftp_cmd_status_t | ftp_syst (const struct uip_conn *sconn, arn_CHAR *res) |
| ftp_cmd_status_t | ftp_port (const struct uip_conn *sconn, arn_uSHORT ldataport) |
| ftp_cmd_status_t | ftp_pasv (const struct uip_conn *sconn) |
| ftp_cmd_status_t | ftp_send (const struct uip_conn *sconn, arn_CHAR *filename, arn_uCHAR *sadd, arn_uLONG size) |
| ftp_cmd_status_t | ftp_quit (const struct uip_conn *sconn) |
| arn_uCHAR | ftp_getStatus (const struct uip_conn *sconn) |
| arn_uCHAR | ftp_getErrorCode (const struct uip_conn *sconn) |
| void | ftp_init (void) |
| void | ftp_appcall (void) |
Variables | |
| arn_uCHAR | TSTclose |
| arn_uCHAR | TSTconn |
| arn_CHAR | TSTgetBff [8][16] |
| arn_uCHAR | TSTack |
| arn_CHAR | TSTpss [32] |
FTP client.
Definition in file ftp.c.
1.7.1