Functions | |
FTP_client_type * | FTP_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... | |
FTP_client_type* FTP_get_control | ( | char * | ftp_server, |
user_type * | user | ||
) |
ftp_server | - IP address string |
user | - registered FTP user |
int32_t FTP_free_control | ( | FTP_client_type * | FTP_client | ) |
int32_t FTP_send_control | ( | FTP_client_type * | FTP_client, |
char * | command | ||
) |
int32_t FTP_get_reply_code | ( | FTP_client_type * | FTP_client | ) |
int32_t FTP_connect | ( | FTP_client_type * | FTP_client, |
int32_t | connect_timeout | ||
) |
FTP_client | - client to connect |
connect_timeout | - timeout for connection attempt |
int32_t FTP_server_login | ( | FTP_client_type * | FTP_client | ) |
FTP_client | - connected FTP client |
int32_t FTP_server_logout | ( | FTP_client_type * | FTP_client | ) |
FTP_client | - connected FTP client |
int32_t FTP_set_file_buffer | ( | FTP_client_type * | FTP_client, |
char * | buffer, | ||
int32_t | size | ||
) |
FTP_client | - connected FTP client |
buffer | - buffer for file transfer |
size | - buffer size for file transfer |
int32_t FTP_retrieve_file | ( | FTP_client_type * | FTP_client, |
char * | file_name, | ||
char | type | ||
) |
FTP_client | - FTP client with connected control socket |
file_name | - file name to download |
type | - file type 'A' for ASCII, 'I' for binary |
int32_t FTP_store_file | ( | FTP_client_type * | FTP_client, |
char * | file_name, | ||
char | type | ||
) |
FTP_client | - FTP client with connected control socket |
file_name | - file name to upload |
type | - file type 'A' for ASCII, 'I' for binary |