Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | write_req_t |
Macros | |
#define | PIPENAME "/tmp/echo.sock" |
Functions | |
void | free_write_req (uv_write_t *req) |
void | alloc_buffer (uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) |
void | echo_write (uv_write_t *req, int status) |
void | echo_read (uv_stream_t *client, ssize_t nread, const uv_buf_t *buf) |
void | on_new_connection (uv_stream_t *server, int status) |
void | remove_sock (int sig) |
int | main () |
Variables | |
uv_loop_t * | loop |
void alloc_buffer | ( | uv_handle_t * | handle, |
size_t | suggested_size, | ||
uv_buf_t * | buf | ||
) |
void echo_read | ( | uv_stream_t * | client, |
ssize_t | nread, | ||
const uv_buf_t * | buf | ||
) |
Definition at line 37 of file main.c.
References echo_write(), free(), malloc(), NULL, req, uv_buf_init(), uv_close(), uv_err_name(), and uv_write().
Referenced by on_new_connection().
void echo_write | ( | uv_write_t * | req, |
int | status | ||
) |
Definition at line 30 of file main.c.
References free_write_req(), req, status, and uv_err_name().
Referenced by echo_read().
void free_write_req | ( | uv_write_t * | req | ) |
Definition at line 19 of file main.c.
References uv_buf_t::base, write_req_t::buf, free(), and req.
Referenced by echo_write(), on_file_write(), and on_stdout_write().
int main | ( | void | ) |
Definition at line 76 of file main.c.
References loop, on_new_connection(), PIPENAME, r, remove_sock(), signal, uv_default_loop(), uv_err_name(), uv_listen(), uv_pipe_bind(), uv_pipe_init(), uv_run(), and UV_RUN_DEFAULT.
void on_new_connection | ( | uv_stream_t * | server, |
int | status | ||
) |
Definition at line 54 of file main.c.
References alloc_buffer(), echo_read(), loop, malloc(), NULL, status, uv_accept(), uv_close(), uv_pipe_init(), and uv_read_start().
void remove_sock | ( | int | sig | ) |
Definition at line 70 of file main.c.
References test-lz4-list::exit, loop, NULL, PIPENAME, req, and uv_fs_unlink().
Referenced by main().