|
Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
| struct | child_worker |
Functions | |
| void | close_process_handle (uv_process_t *req, int64_t exit_status, int term_signal) |
| void | alloc_buffer (uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) |
| void | on_new_connection (uv_stream_t *server, int status) |
| void | setup_workers () |
| int | main () |
Variables | |
| uv_loop_t * | loop |
| struct child_worker * | workers |
| int | round_robin_counter |
| int | child_worker_count |
| uv_buf_t | dummy_buf |
| char | worker_path [500] |
| void alloc_buffer | ( | uv_handle_t * | handle, |
| size_t | suggested_size, | ||
| uv_buf_t * | buf | ||
| ) |
| void close_process_handle | ( | uv_process_t * | req, |
| int64_t | exit_status, | ||
| int | term_signal | ||
| ) |
Definition at line 21 of file main.c.
References exit_status, NULL, PRId64, req, and uv_close().
Referenced by setup_workers().
| int main | ( | void | ) |
Definition at line 97 of file main.c.
References loop, on_new_connection(), r, setup_workers(), uv_default_loop(), uv_err_name(), uv_ip4_addr(), uv_listen(), uv_run(), UV_RUN_DEFAULT, uv_tcp_bind(), and uv_tcp_init().
| void on_new_connection | ( | uv_stream_t * | server, |
| int | status | ||
| ) |
Definition at line 31 of file main.c.
References child_worker_count, dummy_buf, loop, malloc(), NULL, round_robin_counter, status, uv_accept(), uv_buf_init(), uv_close(), uv_tcp_init(), uv_write2(), worker(), workers, and write_req.
| void setup_workers | ( | ) |
Definition at line 51 of file main.c.
References args, calloc(), child_worker_count, close_process_handle(), uv_stdio_container_s::data, uv_stdio_container_s::fd, uv_stdio_container_s::flags, info(), loop, NULL, round_robin_counter, uv_stdio_container_s::stream, uv_cpu_info(), UV_CREATE_PIPE, uv_exepath(), uv_free_cpu_info(), UV_IGNORE, UV_INHERIT_FD, uv_pipe_init(), UV_READABLE_PIPE, uv_spawn(), worker(), worker_path, and workers.
Referenced by main().
| int child_worker_count |
Definition at line 16 of file main.c.
Referenced by on_new_connection(), and setup_workers().
| uv_buf_t dummy_buf |
Definition at line 18 of file main.c.
Referenced by on_new_connection().
| int round_robin_counter |
Definition at line 15 of file main.c.
Referenced by on_new_connection(), and setup_workers().
| char worker_path[500] |
Definition at line 19 of file main.c.
Referenced by setup_workers().
| struct child_worker * workers |
Referenced by on_new_connection(), rz_test_main(), and setup_workers().