Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | curl_context_s |
Typedefs | |
typedef struct curl_context_s | curl_context_t |
Functions | |
curl_context_t * | create_curl_context (curl_socket_t sockfd) |
void | curl_close_cb (uv_handle_t *handle) |
void | destroy_curl_context (curl_context_t *context) |
void | add_download (const char *url, int num) |
void | check_multi_info (void) |
void | curl_perform (uv_poll_t *req, int status, int events) |
void | on_timeout (uv_timer_t *req) |
void | start_timeout (CURLM *multi, long timeout_ms, void *userp) |
int | handle_socket (CURL *easy, curl_socket_t s, int action, void *userp, void *socketp) |
int | main (int argc, char **argv) |
Variables | |
uv_loop_t * | loop |
CURLM * | curl_handle |
uv_timer_t | timeout |
typedef struct curl_context_s curl_context_t |
Definition at line 40 of file main.c.
References curl_handle, file, benchmark::FILE, handle, NULL, num, sprintf, and setup::url.
Referenced by main().
void check_multi_info | ( | void | ) |
Definition at line 58 of file main.c.
References curl_handle, message, and printf().
Referenced by curl_perform(), and on_timeout().
curl_context_t* create_curl_context | ( | curl_socket_t | sockfd | ) |
Definition at line 16 of file main.c.
References assert(), loop, malloc(), r, sockfd, and uv_poll_init_socket().
Referenced by handle_socket().
void curl_close_cb | ( | uv_handle_t * | handle | ) |
Definition at line 30 of file main.c.
References free(), and handle.
Referenced by destroy_curl_context().
Definition at line 81 of file main.c.
References check_multi_info(), curl_handle, flags, req, status, timeout, UV_READABLE, uv_timer_stop(), and UV_WRITABLE.
Referenced by handle_socket().
void destroy_curl_context | ( | curl_context_t * | context | ) |
Definition at line 35 of file main.c.
References curl_close_cb(), and uv_close().
Referenced by handle_socket().
Definition at line 109 of file main.c.
References test-lz4-speed::action, create_curl_context(), curl_handle, curl_perform(), destroy_curl_context(), NULL, curl_context_s::poll_handle, s, uv_poll_start(), uv_poll_stop(), UV_READABLE, and UV_WRITABLE.
Referenced by main().
Definition at line 142 of file main.c.
References add_download(), argv, curl_handle, handle_socket(), loop, start_timeout(), timeout, uv_default_loop(), uv_run(), UV_RUN_DEFAULT, and uv_timer_init().
void on_timeout | ( | uv_timer_t * | req | ) |
Definition at line 97 of file main.c.
References check_multi_info(), and curl_handle.
Referenced by start_timeout().
void start_timeout | ( | CURLM * | multi, |
long | timeout_ms, | ||
void * | userp | ||
) |
Definition at line 103 of file main.c.
References on_timeout(), timeout, and uv_timer_start().
Referenced by main().
CURLM* curl_handle |
Definition at line 8 of file main.c.
Referenced by add_download(), check_multi_info(), curl_perform(), handle_socket(), main(), and on_timeout().
uv_timer_t timeout |
Definition at line 9 of file main.c.
Referenced by core_perform_auto_analysis(), curl_perform(), epoll_wait(), io_read(), io_wait(), iob_pipe_read(), main(), migrateCommand(), migrateGetSocket(), runcmd(), rz_cons_break_timeout(), rz_core_rtr_add(), rz_core_rtr_cmds_query(), rz_core_rtr_http_run(), rz_core_rtr_http_stop(), rz_socket_accept_timeout(), rz_socket_connect(), rz_socket_spawn(), start_timeout(), subprocess_wait(), uv__io_poll(), uv__poll(), uv__poll_wine(), uv__server_io(), uv__slow_poll_thread_proc(), uv_cond_timedwait(), uv_run(), uv_sleep(), uv_timer_start(), and windbg_wait().