Go to the source code of this file.
Classes | |
struct | curl_context_s |
Typedefs | |
typedef struct curl_context_s | curl_context_t |
Functions | |
void | add_download (const char *url, int num) |
static void | check_multi_info (void) |
curl_context_t * | create_curl_context (curl_socket_t sockfd) |
void | curl_close_cb (uv_handle_t *handle) |
void | curl_perform (uv_poll_t *req, int status, int events) |
void | destroy_curl_context (curl_context_t *context) |
int | handle_socket (CURL *easy, curl_socket_t s, int action, void *userp, void *socketp) |
int | main (int argc, char **argv) |
void | on_timeout (uv_timer_t *req, int status) |
void | start_timeout (CURLM *multi, long timeout_ms, void *userp) |
Variables | |
CURLM * | curl_handle |
uv_loop_t * | loop |
uv_timer_t | timeout |
typedef struct curl_context_s curl_context_t |
void add_download | ( | const char * | url, |
int | num | ||
) |
Definition at line 74 of file multi-uv.c.
static void check_multi_info | ( | void | ) | [static] |
Definition at line 96 of file multi-uv.c.
curl_context_t* create_curl_context | ( | curl_socket_t | sockfd | ) |
Definition at line 49 of file multi-uv.c.
void curl_close_cb | ( | uv_handle_t * | handle | ) |
Definition at line 63 of file multi-uv.c.
void curl_perform | ( | uv_poll_t * | req, |
int | status, | ||
int | events | ||
) |
Definition at line 132 of file multi-uv.c.
void destroy_curl_context | ( | curl_context_t * | context | ) |
Definition at line 69 of file multi-uv.c.
int handle_socket | ( | CURL * | easy, |
curl_socket_t | s, | ||
int | action, | ||
void * | userp, | ||
void * | socketp | ||
) |
Definition at line 169 of file multi-uv.c.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 205 of file multi-uv.c.
void on_timeout | ( | uv_timer_t * | req, |
int | status | ||
) |
Definition at line 153 of file multi-uv.c.
void start_timeout | ( | CURLM * | multi, |
long | timeout_ms, | ||
void * | userp | ||
) |
Definition at line 161 of file multi-uv.c.
Definition at line 41 of file multi-uv.c.
uv_loop_t* loop |
Definition at line 40 of file multi-uv.c.
uv_timer_t timeout |
Definition at line 42 of file multi-uv.c.