![]() |
![]()
| ![]() |
![]()
NAMECURLOPT_ACCEPTTIMEOUT_MS - timeout waiting for FTP server to connect back SYNOPSIS#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_ACCEPTTIMEOUT_MS, long ms); DESCRIPTIONPass a long telling libcurl the maximum number of milliseconds to wait for a server to connect back to libcurl when an active FTP connection is used. DEFAULT60000 milliseconds PROTOCOLSThis functionality affects ftp only EXAMPLEint main(void) { AVAILABILITYAdded in curl 7.24.0 RETURN VALUEcurl_easy_setopt(3) returns a CURLcode indicating success or error. CURLE_OK (0) means everything was OK, non-zero means an error occurred, see libcurl-errors(3). SEE ALSOCURLOPT_CONNECTTIMEOUT_MS(3), CURLOPT_DEBUGFUNCTION(3), CURLOPT_STDERR(3)
|