|
MIDAS
|

Go to the source code of this file.
Classes | |
| struct | FTP_CON |
Macros | |
| #define | EXPRT |
| #define | FTP_MAX_ANSWERS 10 /* Number of known goodest answers for reqest */ |
| #define | FTP_QUIT 0 |
| #define | FTP_Ctrl(x) ((x) - '@') |
| #define | FTP_FREE(x) memset ( &x , '\0' , sizeof x ) |
| #define | FTP_CUT(x) ((x)&0xff) |
| #define | ftp_account(ftp, acc) ftp_command(ftp,"ACCT %s",acc,230,EOF) |
| #define | ftp_user(ftp, user) ftp_command(ftp,"USER %s",user,230,331,332,EOF) |
| #define | ftp_password(ftp, pas) ftp_command(ftp,"PASS %s",pas,230,332,EOF) |
| #define | ftp_type(ftp, type) ftp_command(ftp,"TYPE %s",type,200,EOF) |
| #define | ftp_chdir(ftp, dir) ftp_command(ftp,"CWD %s",dir,200,250,EOF) |
| #define | ftp_mkdir(ftp, dir) ftp_command(ftp,"XMKD %s",dir,200,257,EOF) |
| #define | ftp_rm(ftp, dir) ftp_command(ftp,"DELE %s",dir,200,250,EOF) |
| #define | ftp_ascii(ftp) ftp_type(ftp,"A") |
| #define | ftp_binary(ftp) ftp_type(ftp,"I") |
| #define | ftp_open_read(ftp, file) ftp_data(ftp,"RETR %s",file) |
| #define | ftp_open_write(ftp, file) ftp_data(ftp,"STOR %s",file) |
| #define | ftp_open_append(ftp, file) ftp_data(ftp,"APPE %s",file) |
Functions | |
| int EXPRT | ftp_bye (FTP_CON *con) |
| int EXPRT | ftp_close (FTP_CON *con) |
| int EXPRT | ftp_connect (FTP_CON **con, const char *host_name, unsigned short port) |
| int EXPRT | ftp_login (FTP_CON **con, const char *host, unsigned short port, const char *user, const char *pass, const char *acct) |
| int EXPRT | ftp_move (FTP_CON *con, const char *old_name, const char *new_name) |
| int EXPRT | ftp_data (FTP_CON *con, const char *command, const char *param) |
| int EXPRT | ftp_port (FTP_CON *con, int, int, int, int, int, int) |
| int EXPRT | ftp_get (FTP_CON *con, const char *local_name, const char *remote_name) |
| int EXPRT | ftp_put (FTP_CON *con, const char *local_name, const char *remote_name) |
| int EXPRT | ftp_send (int sock, const char *buffer, int n_bytes) |
| int EXPRT | ftp_receive (int sock, char *buffer, int bsize) |
| int EXPRT | ftp_send_message (FTP_CON *con, const char *message) |
| int EXPRT | ftp_get_message (FTP_CON *con, char *message) |
| BOOL EXPRT | ftp_good (int number,...) |
| int EXPRT | ftp_command (FTP_CON *con, const char *command, const char *param,...) |
| int EXPRT | ftp_dir (FTP_CON *con, const char *file) |
| char EXPRT * | ftp_pwd (FTP_CON *con) |
| void EXPRT | ftp_debug (int(*debug_func)(const char *message), int(*error_func)(const char *message)) |
| #define ftp_account | ( | ftp, | |
| acc | |||
| ) | ftp_command(ftp,"ACCT %s",acc,230,EOF) |
| #define ftp_chdir | ( | ftp, | |
| dir | |||
| ) | ftp_command(ftp,"CWD %s",dir,200,250,EOF) |
| #define FTP_MAX_ANSWERS 10 /* Number of known goodest answers for reqest */ |
| #define ftp_mkdir | ( | ftp, | |
| dir | |||
| ) | ftp_command(ftp,"XMKD %s",dir,200,257,EOF) |
| #define ftp_password | ( | ftp, | |
| pas | |||
| ) | ftp_command(ftp,"PASS %s",pas,230,332,EOF) |
| #define ftp_rm | ( | ftp, | |
| dir | |||
| ) | ftp_command(ftp,"DELE %s",dir,200,250,EOF) |
| #define ftp_type | ( | ftp, | |
| type | |||
| ) | ftp_command(ftp,"TYPE %s",type,200,EOF) |
| #define ftp_user | ( | ftp, | |
| user | |||
| ) | ftp_command(ftp,"USER %s",user,230,331,332,EOF) |
Definition at line 484 of file ftplib.cxx.


Definition at line 385 of file ftplib.cxx.


Definition at line 177 of file ftplib.cxx.


Definition at line 51 of file ftplib.cxx.


Definition at line 281 of file ftplib.cxx.


| void EXPRT ftp_debug | ( | int(*)(const char *message) | debug_func, |
| int(*)(const char *message) | error_func | ||
| ) |
Definition at line 42 of file ftplib.cxx.

Definition at line 649 of file ftplib.cxx.

Definition at line 537 of file ftplib.cxx.

Definition at line 225 of file ftplib.cxx.


Definition at line 254 of file ftplib.cxx.

| int EXPRT ftp_login | ( | FTP_CON ** | con, |
| const char * | host, | ||
| unsigned short | port, | ||
| const char * | user, | ||
| const char * | pass, | ||
| const char * | acct | ||
| ) |
Definition at line 450 of file ftplib.cxx.


Definition at line 522 of file ftplib.cxx.


Definition at line 500 of file ftplib.cxx.


Definition at line 580 of file ftplib.cxx.

Definition at line 622 of file ftplib.cxx.

| int EXPRT ftp_receive | ( | int | sock, |
| char * | buffer, | ||
| int | bsize | ||
| ) |
Definition at line 418 of file ftplib.cxx.

| int EXPRT ftp_send | ( | int | sock, |
| const char * | buffer, | ||
| int | n_bytes | ||
| ) |
Definition at line 397 of file ftplib.cxx.

Definition at line 160 of file ftplib.cxx.
