31 int main(
int argc,
char **argv)
63 while(still_running) {
83 rc =
select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
114 printf(
"HTTP transfer completed with status %d\n", msg->
data.
result);
117 printf(
"FTP transfer completed with status %d\n", msg->
data.
result);
CURLMcode curl_multi_fdset(CURLM *multi_handle, fd_set *read_fd_set, fd_set *write_fd_set, fd_set *exc_fd_set, int *max_fd)
int main(int argc, char **argv)
CURLcode curl_easy_setopt(CURL *curl, CURLoption option,...)
CURLM * curl_multi_init(void)
CURLMcode curl_multi_cleanup(CURLM *multi_handle)
CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
CURLMcode curl_multi_add_handle(CURLM *multi_handle, CURL *curl_handle)
void curl_easy_cleanup(CURL *curl)
CURL * curl_easy_init(void)
CURLMsg * curl_multi_info_read(CURLM *multi_handle, int *msgs_in_queue)