Lines Matching refs:pp

225                              struct pingpong *pp,
430 struct pingpong *pp = &ftpc->pp; in ftp_check_ctrl_on_data_wait() local
436 if(Curl_dyn_len(&pp->recvbuf) && (*Curl_dyn_ptr(&pp->recvbuf) > '3')) { in ftp_check_ctrl_on_data_wait()
443 if(pp->overflow) in ftp_check_ctrl_on_data_wait()
464 if(pp->overflow > 3) { in ftp_check_ctrl_on_data_wait()
465 char *r = Curl_dyn_ptr(&pp->recvbuf); in ftp_check_ctrl_on_data_wait()
467 DEBUGASSERT((pp->overflow + pp->nfinal) <= in ftp_check_ctrl_on_data_wait()
468 Curl_dyn_len(&pp->recvbuf)); in ftp_check_ctrl_on_data_wait()
470 r += pp->nfinal; in ftp_check_ctrl_on_data_wait()
535 conn->proto.ftpc.pp.pending_resp = TRUE; /* expect server response */ in InitiateTransfer()
557 struct pingpong *pp, in ftp_readresp() argument
562 CURLcode result = Curl_pp_readresp(data, sockindex, pp, &code, size); in ftp_readresp()
567 char * const buf = Curl_dyn_ptr(&data->conn->proto.ftpc.pp.recvbuf); in ftp_readresp()
632 struct pingpong *pp = &ftpc->pp; in Curl_GetFTPResponse() local
649 timediff_t timeout = Curl_pp_state_timeout(data, pp, FALSE); in Curl_GetFTPResponse()
675 if(Curl_dyn_len(&pp->recvbuf) && (cache_skip < 2)) { in Curl_GetFTPResponse()
684 curl_socket_t wsock = Curl_pp_needs_flush(data, pp) ? in Curl_GetFTPResponse()
699 if(Curl_pp_needs_flush(data, pp)) { in Curl_GetFTPResponse()
700 result = Curl_pp_flushsend(data, pp); in Curl_GetFTPResponse()
705 result = ftp_readresp(data, FIRSTSOCKET, pp, ftpcode, &nread); in Curl_GetFTPResponse()
709 if(!nread && Curl_dyn_len(&pp->recvbuf)) in Curl_GetFTPResponse()
722 pp->pending_resp = FALSE; in Curl_GetFTPResponse()
733 &conn->proto.ftpc.pp, "USER %s", in ftp_state_user()
746 CURLcode result = Curl_pp_sendf(data, &conn->proto.ftpc.pp, "%s", "PWD"); in ftp_state_pwd()
758 return Curl_pp_getsock(data, &conn->proto.ftpc.pp, socks); in ftp_getsock()
785 return Curl_pp_getsock(data, &conn->proto.ftpc.pp, socks); in ftp_domore_getsock()
818 result = Curl_pp_sendf(data, &ftpc->pp, "CWD %s", ftpc->entrypath); in ftp_state_cwd()
827 result = Curl_pp_sendf(data, &ftpc->pp, "CWD %s", in ftp_state_cwd()
1156 result = Curl_pp_sendf(data, &ftpc->pp, "%s |%d|%s|%hu|", mode[fcmd], in ftp_state_use_port()
1184 result = Curl_pp_sendf(data, &ftpc->pp, "%s %s", mode[fcmd], target); in ftp_state_use_port()
1258 result = Curl_pp_sendf(data, &ftpc->pp, "%s", mode[modeoff]); in ftp_state_use_pasv()
1298 result = Curl_pp_sendf(data, &ftpc->pp, "PRET %s", in ftp_state_prepare_transfer()
1303 result = Curl_pp_sendf(data, &ftpc->pp, "PRET STOR %s", in ftp_state_prepare_transfer()
1306 result = Curl_pp_sendf(data, &ftpc->pp, "PRET RETR %s", in ftp_state_prepare_transfer()
1329 result = Curl_pp_sendf(data, &ftpc->pp, "REST %d", 0); in ftp_state_rest()
1350 result = Curl_pp_sendf(data, &ftpc->pp, "SIZE %s", ftpc->file); in ftp_state_size()
1416 result = Curl_pp_sendf(data, &conn->proto.ftpc.pp, "%s", cmd); in ftp_state_list()
1481 result = Curl_pp_sendf(data, &ftpc->pp, "MDTM %s", ftpc->file); in ftp_state_mdtm()
1521 result = Curl_pp_sendf(data, &ftpc->pp, "SIZE %s", ftpc->file); in ftp_state_ul_setup()
1586 result = Curl_pp_sendf(data, &ftpc->pp, append ? "APPE %s" : "STOR %s", in ftp_state_ul_setup()
1647 result = Curl_pp_sendf(data, &ftpc->pp, "%s", cmd); in ftp_state_quote()
1684 result = Curl_pp_sendf(data, &ftpc->pp, "RETR %s", ftpc->file); in ftp_state_quote()
1689 result = Curl_pp_sendf(data, &ftpc->pp, "SIZE %s", ftpc->file); in ftp_state_quote()
1731 result = Curl_pp_sendf(data, &conn->proto.ftpc.pp, "%s", "PASV"); in ftp_epsv_disable()
1786 struct pingpong *pp = &ftpc->pp; in ftp_state_pasv_resp() local
1788 Curl_dyn_ptr(&pp->recvbuf) + 4; /* start on the first letter */ in ftp_state_pasv_resp()
2066 struct pingpong *pp = &ftpc->pp; in ftp_state_mdtm_resp() local
2067 char *resp = Curl_dyn_ptr(&pp->recvbuf) + 4; in ftp_state_mdtm_resp()
2259 result = Curl_pp_sendf(data, &ftpc->pp, "REST %" FMT_OFF_T, in ftp_state_retr()
2266 result = Curl_pp_sendf(data, &ftpc->pp, "RETR %s", ftpc->file); in ftp_state_retr()
2280 char *buf = Curl_dyn_ptr(&data->conn->proto.ftpc.pp.recvbuf); in ftp_state_size_resp()
2281 size_t len = data->conn->proto.ftpc.pp.nfinal; in ftp_state_size_resp()
2366 result = Curl_pp_sendf(data, &ftpc->pp, "RETR %s", ftpc->file); in ftp_state_rest_resp()
2464 char *buf = Curl_dyn_ptr(&conn->proto.ftpc.pp.recvbuf); in ftp_state_get_resp()
2562 result = Curl_pp_sendf(data, &conn->proto.ftpc.pp, "PBSZ %d", 0); in ftp_state_loggedin()
2584 result = Curl_pp_sendf(data, &ftpc->pp, "PASS %s", in ftp_state_user_resp()
2596 result = Curl_pp_sendf(data, &ftpc->pp, "ACCT %s", in ftp_state_user_resp()
2616 Curl_pp_sendf(data, &ftpc->pp, "%s", in ftp_state_user_resp()
2653 struct pingpong *pp = &ftpc->pp; in ftp_statemachine() local
2657 if(pp->sendleft) in ftp_statemachine()
2658 return Curl_pp_flushsend(data, pp); in ftp_statemachine()
2660 result = ftp_readresp(data, FIRSTSOCKET, pp, &ftpcode, &nread); in ftp_statemachine()
2719 result = Curl_pp_sendf(data, &ftpc->pp, "AUTH %s", in ftp_statemachine()
2731 if(pp->overflow) in ftp_statemachine()
2761 result = Curl_pp_sendf(data, &ftpc->pp, "AUTH %s", in ftp_statemachine()
2786 Curl_pp_sendf(data, &ftpc->pp, "PROT %c", in ftp_statemachine()
2806 result = Curl_pp_sendf(data, &ftpc->pp, "%s", "CCC"); in ftp_statemachine()
2835 char *ptr = Curl_dyn_ptr(&pp->recvbuf) + 4; /* start on the first in ftp_statemachine()
2891 result = Curl_pp_sendf(data, &ftpc->pp, "%s", "SYST"); in ftp_statemachine()
2923 char *ptr = Curl_dyn_ptr(&pp->recvbuf) + 4; /* start on the first in ftp_statemachine()
2942 result = Curl_pp_sendf(data, &ftpc->pp, "%s", "SITE NAMEFMT 1"); in ftp_statemachine()
3003 result = Curl_pp_sendf(data, &ftpc->pp, "MKD %s", in ftp_statemachine()
3021 result = Curl_pp_sendf(data, &ftpc->pp, "CWD %s", in ftp_statemachine()
3037 result = Curl_pp_sendf(data, &ftpc->pp, "CWD %s", in ftp_statemachine()
3108 CURLcode result = Curl_pp_statemach(data, &ftpc->pp, FALSE, FALSE); in ftp_multi_statemach()
3122 struct pingpong *pp = &ftpc->pp; in ftp_block_statemach() local
3126 result = Curl_pp_statemach(data, pp, TRUE, TRUE /* disconnecting */); in ftp_block_statemach()
3148 struct pingpong *pp = &ftpc->pp; in ftp_connect() local
3155 PINGPONG_SETUP(pp, ftp_statemachine, ftp_endofresp); in ftp_connect()
3165 Curl_pp_init(pp); /* once per transfer */ in ftp_connect()
3191 struct pingpong *pp = &ftpc->pp; in ftp_done() local
3292 result = Curl_pp_sendf(data, pp, "%s", "ABOR"); in ftp_done()
3305 pp->pending_resp && !premature) { in ftp_done()
3312 timediff_t old_time = pp->response_time; in ftp_done()
3314 pp->response_time = 60*1000; /* give it only a minute for now */ in ftp_done()
3315 pp->response = Curl_now(); /* timeout relative now */ in ftp_done()
3319 pp->response_time = old_time; /* set this back to previous value */ in ftp_done()
3417 struct pingpong *pp = &ftpc->pp; in ftp_sendquote() local
3438 result = Curl_pp_sendf(data, &ftpc->pp, "%s", cmd); in ftp_sendquote()
3440 pp->response = Curl_now(); /* timeout relative now */ in ftp_sendquote()
3491 result = Curl_pp_sendf(data, &ftpc->pp, "TYPE %c", want); in ftp_nb_type()
4037 result = Curl_pp_sendf(data, &conn->proto.ftpc.pp, "%s", "QUIT"); in ftp_quit()
4067 struct pingpong *pp = &ftpc->pp; in ftp_disconnect() local
4094 Curl_pp_disconnect(pp); in ftp_disconnect()