Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_io.h>
#include <rz_lib.h>
#include <rz_core.h>
#include <rz_socket.h>
#include <sys/types.h>
Go to the source code of this file.
Classes | |
struct | RzIORap |
Macros | |
#define | RzIORAP_FD(x) (((x)->data) ? (((RzIORap *)((x)->data))->client) : NULL) |
#define | RzIORAP_IS_LISTEN(x) (((RzIORap *)((x)->data))->listener) |
#define | RzIORAP_IS_VALID(x) ((x) && ((x)->data) && ((x)->plugin == &rz_io_plugin_rap)) |
Functions | |
static int | __rap_write (RzIO *io, RzIODesc *fd, const ut8 *buf, int count) |
static bool | __rap_accept (RzIO *io, RzIODesc *desc, int fd) |
static int | __rap_read (RzIO *io, RzIODesc *fd, ut8 *buf, int count) |
static int | __rap_close (RzIODesc *fd) |
static ut64 | __rap_lseek (RzIO *io, RzIODesc *fd, ut64 offset, int whence) |
static bool | __rap_plugin_open (RzIO *io, const char *pathname, bool many) |
static RzIODesc * | __rap_open (RzIO *io, const char *pathname, int rw, int mode) |
static int | __rap_listener (RzIODesc *fd) |
static char * | __rap_system (RzIO *io, RzIODesc *fd, const char *command) |
Variables | |
RzIOPlugin | rz_io_plugin_rap |
RZ_API RzLibStruct | rizin_plugin |
#define RzIORAP_IS_VALID | ( | x | ) | ((x) && ((x)->data) && ((x)->plugin == &rz_io_plugin_rap)) |
Definition at line 25 of file io_rap.c.
References RzIORap::client, desc, fd, NULL, and rz_socket_new_from_fd().
Definition at line 39 of file io_rap.c.
References eprintf, fd, NULL, r, RZ_FREE, rz_socket_close(), RzIORAP_FD, and RzIORAP_IS_VALID.
Definition at line 60 of file io_rap.c.
References fd, rz_socket_rap_client_seek(), RzIORAP_FD, and s.
Definition at line 69 of file io_rap.c.
References __rap_plugin_open(), RzIORap::client, rz_core_bind_t::cmd, rz_core_bind_t::core, rz_io_t::corebind, eprintf, RzIORap::fd, file, free(), i, RzIORap::listener, NULL, p, pathname, rz_io_desc_new(), rz_io_plugin_rap, RZ_NEW0, rz_socket_connect(), rz_socket_free(), rz_socket_listen(), rz_socket_new(), RZ_SOCKET_PROTO_TCP, rz_socket_rap_client_open(), and s.
Definition at line 65 of file io_rap.c.
References pathname, and rz_str_startswith().
Referenced by __rap_open().
Definition at line 34 of file io_rap.c.
References count, fd, rz_socket_rap_client_read(), RzIORAP_FD, and s.
Definition at line 169 of file io_rap.c.
References calloc(), rz_io_t::cb_printf, command, rz_io_t::corebind, eprintf, fd, free(), i, memcpy(), memset(), NULL, rz_read_at_be32(), rz_socket_flush(), rz_socket_rap_client_command(), rz_socket_read(), rz_socket_read_block(), rz_socket_write(), rz_write_be32(), RzIORAP_FD, s, ST32_MAX, cmd_descs_generate::str, strdup(), tr, and write.
Definition at line 20 of file io_rap.c.
References count, fd, rz_socket_rap_client_write(), RzIORAP_FD, and s.
RZ_API RzLibStruct rizin_plugin |
RzIOPlugin rz_io_plugin_rap |
Definition at line 279 of file io_rap.c.
Referenced by __rap_open().