Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Functions | |
void | alloc_buffer (uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) |
void | on_read (uv_stream_t *client, ssize_t nread, const uv_buf_t *buf) |
void | on_connect (uv_connect_t *req, int status) |
void | on_resolved (uv_getaddrinfo_t *resolver, int status, struct addrinfo *res) |
int | main () |
Variables | |
uv_loop_t * | loop |
void alloc_buffer | ( | uv_handle_t * | handle, |
size_t | suggested_size, | ||
uv_buf_t * | buf | ||
) |
Definition at line 8 of file main.c.
References malloc().
Referenced by main(), make_discover_msg(), on_connect(), and on_new_connection().
int main | ( | void | ) |
Definition at line 62 of file main.c.
References loop, on_resolved(), PF_INET, r, SOCK_STREAM, uv_default_loop(), uv_err_name(), uv_getaddrinfo(), uv_run(), and UV_RUN_DEFAULT.
void on_connect | ( | uv_connect_t * | req, |
int | status | ||
) |
Definition at line 32 of file main.c.
References alloc_buffer(), free(), on_read(), req, status, uv_err_name(), and uv_read_start().
Referenced by on_resolved().
void on_read | ( | uv_stream_t * | client, |
ssize_t | nread, | ||
const uv_buf_t * | buf | ||
) |
Definition at line 13 of file main.c.
References free(), malloc(), NULL, uv_close(), and uv_err_name().
Referenced by main(), on_connect(), on_open(), and on_write().
void on_resolved | ( | uv_getaddrinfo_t * | resolver, |
int | status, | ||
struct addrinfo * | res | ||
) |
Definition at line 43 of file main.c.
References addr, loop, malloc(), on_connect(), socket, status, uv_err_name(), uv_freeaddrinfo(), uv_ip4_name(), uv_tcp_connect(), and uv_tcp_init().
Referenced by main().