Lines Matching refs:pp

225                              struct pingpong *pp,
537 struct pingpong *pp = &ftpc->pp; in ReceivedServerConnect() local
555 if(Curl_dyn_len(&pp->recvbuf) && (*Curl_dyn_ptr(&pp->recvbuf) > '3')) { in ReceivedServerConnect()
562 if(pp->overflow) in ReceivedServerConnect()
587 if(pp->overflow > 3) { in ReceivedServerConnect()
588 char *r = Curl_dyn_ptr(&pp->recvbuf); in ReceivedServerConnect()
590 DEBUGASSERT((pp->overflow + pp->nfinal) <= in ReceivedServerConnect()
591 Curl_dyn_len(&pp->recvbuf)); in ReceivedServerConnect()
593 r += pp->nfinal; in ReceivedServerConnect()
666 conn->proto.ftpc.pp.pending_resp = TRUE; /* expect server response */ in InitiateTransfer()
742 struct pingpong *pp, in ftp_readresp() argument
747 CURLcode result = Curl_pp_readresp(data, sockindex, pp, &code, size); in ftp_readresp()
752 char * const buf = Curl_dyn_ptr(&data->conn->proto.ftpc.pp.recvbuf); in ftp_readresp()
817 struct pingpong *pp = &ftpc->pp; in Curl_GetFTPResponse() local
834 timediff_t timeout = Curl_pp_state_timeout(data, pp, FALSE); in Curl_GetFTPResponse()
860 if(Curl_dyn_len(&pp->recvbuf) && (cache_skip < 2)) { in Curl_GetFTPResponse()
869 curl_socket_t wsock = Curl_pp_needs_flush(data, pp) ? in Curl_GetFTPResponse()
884 if(Curl_pp_needs_flush(data, pp)) { in Curl_GetFTPResponse()
885 result = Curl_pp_flushsend(data, pp); in Curl_GetFTPResponse()
890 result = ftp_readresp(data, FIRSTSOCKET, pp, ftpcode, &nread); in Curl_GetFTPResponse()
894 if(!nread && Curl_dyn_len(&pp->recvbuf)) in Curl_GetFTPResponse()
907 pp->pending_resp = FALSE; in Curl_GetFTPResponse()
918 &conn->proto.ftpc.pp, "USER %s", in ftp_state_user()
931 CURLcode result = Curl_pp_sendf(data, &conn->proto.ftpc.pp, "%s", "PWD"); in ftp_state_pwd()
943 return Curl_pp_getsock(data, &conn->proto.ftpc.pp, socks); in ftp_getsock()
970 return Curl_pp_getsock(data, &conn->proto.ftpc.pp, socks); in ftp_domore_getsock()
1003 result = Curl_pp_sendf(data, &ftpc->pp, "CWD %s", ftpc->entrypath); in ftp_state_cwd()
1012 result = Curl_pp_sendf(data, &ftpc->pp, "CWD %s", in ftp_state_cwd()
1347 result = Curl_pp_sendf(data, &ftpc->pp, "%s |%d|%s|%hu|", mode[fcmd], in ftp_state_use_port()
1375 result = Curl_pp_sendf(data, &ftpc->pp, "%s %s", mode[fcmd], target); in ftp_state_use_port()
1433 result = Curl_pp_sendf(data, &ftpc->pp, "%s", mode[modeoff]); in ftp_state_use_pasv()
1473 result = Curl_pp_sendf(data, &ftpc->pp, "PRET %s", in ftp_state_prepare_transfer()
1478 result = Curl_pp_sendf(data, &ftpc->pp, "PRET STOR %s", in ftp_state_prepare_transfer()
1481 result = Curl_pp_sendf(data, &ftpc->pp, "PRET RETR %s", in ftp_state_prepare_transfer()
1504 result = Curl_pp_sendf(data, &ftpc->pp, "REST %d", 0); in ftp_state_rest()
1525 result = Curl_pp_sendf(data, &ftpc->pp, "SIZE %s", ftpc->file); in ftp_state_size()
1591 result = Curl_pp_sendf(data, &conn->proto.ftpc.pp, "%s", cmd); in ftp_state_list()
1656 result = Curl_pp_sendf(data, &ftpc->pp, "MDTM %s", ftpc->file); in ftp_state_mdtm()
1696 result = Curl_pp_sendf(data, &ftpc->pp, "SIZE %s", ftpc->file); in ftp_state_ul_setup()
1761 result = Curl_pp_sendf(data, &ftpc->pp, append ? "APPE %s" : "STOR %s", in ftp_state_ul_setup()
1822 result = Curl_pp_sendf(data, &ftpc->pp, "%s", cmd); in ftp_state_quote()
1859 result = Curl_pp_sendf(data, &ftpc->pp, "RETR %s", ftpc->file); in ftp_state_quote()
1864 result = Curl_pp_sendf(data, &ftpc->pp, "SIZE %s", ftpc->file); in ftp_state_quote()
1906 result = Curl_pp_sendf(data, &conn->proto.ftpc.pp, "%s", "PASV"); in ftp_epsv_disable()
1961 struct pingpong *pp = &ftpc->pp; in ftp_state_pasv_resp() local
1963 Curl_dyn_ptr(&pp->recvbuf) + 4; /* start on the first letter */ in ftp_state_pasv_resp()
2241 struct pingpong *pp = &ftpc->pp; in ftp_state_mdtm_resp() local
2242 char *resp = Curl_dyn_ptr(&pp->recvbuf) + 4; in ftp_state_mdtm_resp()
2434 result = Curl_pp_sendf(data, &ftpc->pp, "REST %" FMT_OFF_T, in ftp_state_retr()
2441 result = Curl_pp_sendf(data, &ftpc->pp, "RETR %s", ftpc->file); in ftp_state_retr()
2455 char *buf = Curl_dyn_ptr(&data->conn->proto.ftpc.pp.recvbuf); in ftp_state_size_resp()
2456 size_t len = data->conn->proto.ftpc.pp.nfinal; in ftp_state_size_resp()
2541 result = Curl_pp_sendf(data, &ftpc->pp, "RETR %s", ftpc->file); in ftp_state_rest_resp()
2639 char *buf = Curl_dyn_ptr(&conn->proto.ftpc.pp.recvbuf); in ftp_state_get_resp()
2736 result = Curl_pp_sendf(data, &conn->proto.ftpc.pp, "PBSZ %d", 0); in ftp_state_loggedin()
2758 result = Curl_pp_sendf(data, &ftpc->pp, "PASS %s", in ftp_state_user_resp()
2770 result = Curl_pp_sendf(data, &ftpc->pp, "ACCT %s", in ftp_state_user_resp()
2790 Curl_pp_sendf(data, &ftpc->pp, "%s", in ftp_state_user_resp()
2827 struct pingpong *pp = &ftpc->pp; in ftp_statemachine() local
2831 if(pp->sendleft) in ftp_statemachine()
2832 return Curl_pp_flushsend(data, pp); in ftp_statemachine()
2834 result = ftp_readresp(data, FIRSTSOCKET, pp, &ftpcode, &nread); in ftp_statemachine()
2893 result = Curl_pp_sendf(data, &ftpc->pp, "AUTH %s", in ftp_statemachine()
2905 if(pp->overflow) in ftp_statemachine()
2935 result = Curl_pp_sendf(data, &ftpc->pp, "AUTH %s", in ftp_statemachine()
2960 Curl_pp_sendf(data, &ftpc->pp, "PROT %c", in ftp_statemachine()
2980 result = Curl_pp_sendf(data, &ftpc->pp, "%s", "CCC"); in ftp_statemachine()
3009 char *ptr = Curl_dyn_ptr(&pp->recvbuf) + 4; /* start on the first in ftp_statemachine()
3065 result = Curl_pp_sendf(data, &ftpc->pp, "%s", "SYST"); in ftp_statemachine()
3097 char *ptr = Curl_dyn_ptr(&pp->recvbuf) + 4; /* start on the first in ftp_statemachine()
3116 result = Curl_pp_sendf(data, &ftpc->pp, "%s", "SITE NAMEFMT 1"); in ftp_statemachine()
3177 result = Curl_pp_sendf(data, &ftpc->pp, "MKD %s", in ftp_statemachine()
3195 result = Curl_pp_sendf(data, &ftpc->pp, "CWD %s", in ftp_statemachine()
3211 result = Curl_pp_sendf(data, &ftpc->pp, "CWD %s", in ftp_statemachine()
3282 CURLcode result = Curl_pp_statemach(data, &ftpc->pp, FALSE, FALSE); in ftp_multi_statemach()
3296 struct pingpong *pp = &ftpc->pp; in ftp_block_statemach() local
3300 result = Curl_pp_statemach(data, pp, TRUE, TRUE /* disconnecting */); in ftp_block_statemach()
3322 struct pingpong *pp = &ftpc->pp; in ftp_connect() local
3329 PINGPONG_SETUP(pp, ftp_statemachine, ftp_endofresp); in ftp_connect()
3339 Curl_pp_init(pp); /* once per transfer */ in ftp_connect()
3365 struct pingpong *pp = &ftpc->pp; in ftp_done() local
3466 result = Curl_pp_sendf(data, pp, "%s", "ABOR"); in ftp_done()
3479 pp->pending_resp && !premature) { in ftp_done()
3486 timediff_t old_time = pp->response_time; in ftp_done()
3488 pp->response_time = 60*1000; /* give it only a minute for now */ in ftp_done()
3489 pp->response = Curl_now(); /* timeout relative now */ in ftp_done()
3493 pp->response_time = old_time; /* set this back to previous value */ in ftp_done()
3591 struct pingpong *pp = &ftpc->pp; in ftp_sendquote() local
3612 result = Curl_pp_sendf(data, &ftpc->pp, "%s", cmd); in ftp_sendquote()
3614 pp->response = Curl_now(); /* timeout relative now */ in ftp_sendquote()
3665 result = Curl_pp_sendf(data, &ftpc->pp, "TYPE %c", want); in ftp_nb_type()
4205 result = Curl_pp_sendf(data, &conn->proto.ftpc.pp, "%s", "QUIT"); in ftp_quit()
4235 struct pingpong *pp = &ftpc->pp; in ftp_disconnect() local
4262 Curl_pp_disconnect(pp); in ftp_disconnect()