Lines Matching defs:code
221 * NOTE: back in the old days, we added code in the FTP code that made NOBODY
528 /* macro to check for a three-digit ftp status code at the start of the
537 char *line, size_t len, int *code)
543 *code = curlx_sltosi(strtol(line, NULL, 10));
553 int *ftpcode, /* return the ftp-code if done */
556 int code;
557 CURLcode result = Curl_pp_readresp(data, sockfd, pp, &code, size);
565 switch(code) {
567 code = Curl_sec_read_msg(data, conn, buf, PROT_SAFE);
570 code = Curl_sec_read_msg(data, conn, buf, PROT_PRIVATE);
573 code = Curl_sec_read_msg(data, conn, buf, PROT_CONFIDENTIAL);
582 /* store the latest code for later retrieval */
583 data->info.httpcode = code;
586 *ftpcode = code;
588 if(421 == code) {
593 * This response code can come at any point so having it treated
614 int *ftpcode) /* return the ftp-code */
1603 CURL_READFUNC_ABORT return code still aborts */
1934 /* BLOCKING, ignores the return code but 'addr' will be NULL in
2019 /* The FTP spec tells a positive response should have code 200.
2213 positive response code and we allow that. */
2218 infof(data, "Got a %03d response code instead of the assumed 200",
2783 * reply code 234/334.
3021 /* failure response code, and not allowed to fail */
3105 /* there only is this one standard OK return code. */
3149 /* Check for the state outside of the Curl_socket_check() return code checks
3267 connclose(conn, "FTP ended with bad error code");
3268 result = status; /* use the already set error code */
3397 /* the response code from the transfer showed an error already so no
4040 * server before returning. The calling code should then try to close the