Defines |
#define | CURL_FTP_HTTPSTYLE_HEAD 1 |
#define | INET_ADDRSTRLEN 16 |
#define | LASTLINE(line) (STATUSCODE(line) && (' ' == line[3])) |
#define | NI_MAXHOST 1025 |
#define | PPSENDF(x, y, z) |
#define | SBUF_SIZE 1024 |
#define | state(x, y) _state(x,y) |
#define | STATUSCODE(line) |
Enumerations |
enum | ftpport { EPRT,
PORT,
DONE
} |
Functions |
static void | _state (struct connectdata *conn, ftpstate newstate) |
static CURLcode | AcceptServerConnect (struct connectdata *conn) |
static CURLcode | AllowServerConnect (struct connectdata *conn, bool *connected) |
static void | close_secondarysocket (struct connectdata *conn) |
static char * | control_address (struct connectdata *conn) |
CURLcode | Curl_ftpsend (struct connectdata *conn, const char *cmd) |
CURLcode | Curl_GetFTPResponse (ssize_t *nreadp, struct connectdata *conn, int *ftpcode) |
static void | freedirs (struct ftp_conn *ftpc) |
static CURLcode | ftp_block_statemach (struct connectdata *conn) |
static CURLcode | ftp_connect (struct connectdata *conn, bool *done) |
static CURLcode | ftp_disconnect (struct connectdata *conn, bool dead_connection) |
static CURLcode | ftp_do (struct connectdata *conn, bool *done) |
static CURLcode | ftp_do_more (struct connectdata *conn, int *completed) |
static CURLcode | ftp_doing (struct connectdata *conn, bool *dophase_done) |
static int | ftp_domore_getsock (struct connectdata *conn, curl_socket_t *socks, int numsocks) |
static CURLcode | ftp_done (struct connectdata *conn, CURLcode, bool premature) |
static CURLcode | ftp_dophase_done (struct connectdata *conn, bool connected) |
static bool | ftp_endofresp (struct connectdata *conn, char *line, size_t len, int *code) |
static CURLcode | ftp_epsv_disable (struct connectdata *conn) |
static int | ftp_getsock (struct connectdata *conn, curl_socket_t *socks, int numsocks) |
static CURLcode | ftp_multi_statemach (struct connectdata *conn, bool *done) |
static CURLcode | ftp_nb_type (struct connectdata *conn, bool ascii, ftpstate newstate) |
static int | ftp_need_type (struct connectdata *conn, bool ascii) |
static CURLcode | ftp_parse_url_path (struct connectdata *conn) |
static void | ftp_pasv_verbose (struct connectdata *conn, Curl_addrinfo *ai, char *newhost, int port) |
static CURLcode | ftp_perform (struct connectdata *conn, bool *connected, bool *dophase_done) |
static CURLcode | ftp_quit (struct connectdata *conn) |
static CURLcode | ftp_range (struct connectdata *conn) |
static CURLcode | ftp_readresp (curl_socket_t sockfd, struct pingpong *pp, int *ftpcode, size_t *size) |
static CURLcode | ftp_regular_transfer (struct connectdata *conn, bool *done) |
static CURLcode | ftp_sendquote (struct connectdata *conn, struct curl_slist *quote) |
static CURLcode | ftp_setup_connection (struct connectdata *conn) |
static CURLcode | ftp_state_acct_resp (struct connectdata *conn, int ftpcode) |
static CURLcode | ftp_state_cwd (struct connectdata *conn) |
static CURLcode | ftp_state_get_resp (struct connectdata *conn, int ftpcode, ftpstate instate) |
static CURLcode | ftp_state_list (struct connectdata *conn) |
static CURLcode | ftp_state_loggedin (struct connectdata *conn) |
static CURLcode | ftp_state_mdtm (struct connectdata *conn) |
static CURLcode | ftp_state_mdtm_resp (struct connectdata *conn, int ftpcode) |
static CURLcode | ftp_state_pasv_resp (struct connectdata *conn, int ftpcode) |
static CURLcode | ftp_state_port_resp (struct connectdata *conn, int ftpcode) |
static CURLcode | ftp_state_prepare_transfer (struct connectdata *conn) |
static CURLcode | ftp_state_pwd (struct connectdata *conn) |
static CURLcode | ftp_state_quote (struct connectdata *conn, bool init, ftpstate instate) |
static CURLcode | ftp_state_rest (struct connectdata *conn) |
static CURLcode | ftp_state_rest_resp (struct connectdata *conn, int ftpcode, ftpstate instate) |
static CURLcode | ftp_state_retr (struct connectdata *conn, curl_off_t filesize) |
static CURLcode | ftp_state_retr_prequote (struct connectdata *conn) |
static CURLcode | ftp_state_size (struct connectdata *conn) |
static CURLcode | ftp_state_size_resp (struct connectdata *conn, int ftpcode, ftpstate instate) |
static CURLcode | ftp_state_stor_prequote (struct connectdata *conn) |
static CURLcode | ftp_state_stor_resp (struct connectdata *conn, int ftpcode, ftpstate instate) |
static CURLcode | ftp_state_type (struct connectdata *conn) |
static CURLcode | ftp_state_type_resp (struct connectdata *conn, int ftpcode, ftpstate instate) |
static CURLcode | ftp_state_ul_setup (struct connectdata *conn, bool sizechecked) |
static CURLcode | ftp_state_use_pasv (struct connectdata *conn) |
static CURLcode | ftp_state_use_port (struct connectdata *conn, ftpport fcmd) |
static CURLcode | ftp_state_user (struct connectdata *conn) |
static CURLcode | ftp_state_user_resp (struct connectdata *conn, int ftpcode, ftpstate instate) |
static CURLcode | ftp_statemach_act (struct connectdata *conn) |
static time_t | ftp_timeleft_accept (struct Curl_easy *data) |
static CURLcode | init_wc_data (struct connectdata *conn) |
static CURLcode | InitiateTransfer (struct connectdata *conn) |
static bool | isBadFtpString (const char *string) |
static CURLcode | ReceivedServerConnect (struct connectdata *conn, bool *received) |
static void | wc_data_dtor (void *ptr) |
static CURLcode | wc_statemach (struct connectdata *conn) |
Variables |
struct Curl_handler | Curl_handler_ftp |
static struct Curl_handler | Curl_handler_ftp_proxy |