#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) |
|
static void add_download |
( |
const char * |
url, |
|
|
int |
num |
|
) |
| |
|
static |
static void check_multi_info |
( |
void |
| ) |
|
|
static |
static void curl_close_cb |
( |
uv_handle_t * |
handle | ) |
|
|
static |
static void curl_perform |
( |
uv_poll_t * |
req, |
|
|
int |
status, |
|
|
int |
events |
|
) |
| |
|
static |
static int handle_socket |
( |
CURL * |
easy, |
|
|
curl_socket_t |
s, |
|
|
int |
action, |
|
|
void * |
userp, |
|
|
void * |
socketp |
|
) |
| |
|
static |
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
static void on_timeout |
( |
uv_timer_t * |
req | ) |
|
|
static |
static int start_timeout |
( |
CURLM * |
multi, |
|
|
long |
timeout_ms, |
|
|
void * |
userp |
|
) |
| |
|
static |