#include <stdio.h>
#include <stdlib.h>
#include <uv.h>
#include <curl/curl.h>
Go to the source code of this file.
|
| static void | add_download (const char *url, int num) |
| |
| static void | check_multi_info (void) |
| |
| static curl_context_t * | create_curl_context (curl_socket_t sockfd) |
| |
| static void | curl_close_cb (uv_handle_t *handle) |
| |
| static void | curl_perform (uv_poll_t *req, int status, int events) |
| |
| static void | destroy_curl_context (curl_context_t *context) |
| |
| static int | handle_socket (CURL *easy, curl_socket_t s, int action, void *userp, void *socketp) |
| |
| int | main (int argc, char **argv) |
| |
| static void | on_timeout (uv_timer_t *req) |
| |
| static int | start_timeout (CURLM *multi, long timeout_ms, void *userp) |
| |
◆ curl_context_t
◆ add_download()
| static void add_download |
( |
const char * |
url, |
|
|
int |
num |
|
) |
| |
|
static |
◆ check_multi_info()
| static void check_multi_info |
( |
void |
| ) |
|
|
static |
◆ create_curl_context()
◆ curl_close_cb()
| static void curl_close_cb |
( |
uv_handle_t * |
handle | ) |
|
|
static |
◆ curl_perform()
| static void curl_perform |
( |
uv_poll_t * |
req, |
|
|
int |
status, |
|
|
int |
events |
|
) |
| |
|
static |
◆ destroy_curl_context()
◆ handle_socket()
| static int handle_socket |
( |
CURL * |
easy, |
|
|
curl_socket_t |
s, |
|
|
int |
action, |
|
|
void * |
userp, |
|
|
void * |
socketp |
|
) |
| |
|
static |
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ on_timeout()
| static void on_timeout |
( |
uv_timer_t * |
req | ) |
|
|
static |
◆ start_timeout()
| static int start_timeout |
( |
CURLM * |
multi, |
|
|
long |
timeout_ms, |
|
|
void * |
userp |
|
) |
| |
|
static |
◆ curl_handle
◆ loop
◆ timeout