Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | READ_TIMEOUT (300 * 1000 * 1000) |
#define | FRAME_CHAR 0x7e |
#define | ESC_CHAR 0x7d |
#define | SET_CHANNEL_RESET 0 |
#define | SET_CHANNEL_DEBUG 1 |
#define | SET_CHANNEL_TEXT 2 |
#define | SET_CHANNEL_NAK 0xff |
Functions | |
static int | append (libqnxr_t *g, char ch) |
static int | unpack (libqnxr_t *g) |
int | qnxr_read_packet (libqnxr_t *g) |
Function reads data from the established connection. More... | |
int | qnxr_send_nak (libqnxr_t *g) |
int | qnxr_send_ch_reset (libqnxr_t *g) |
int | qnxr_send_ch_debug (libqnxr_t *g) |
int | qnxr_send_ch_text (libqnxr_t *g) |
int | qnxr_send_packet (libqnxr_t *g) |
sends a packet sends a packet to the established connection More... | |
Variables | |
static ut8 | nak_packet [] = { FRAME_CHAR, SET_CHANNEL_NAK, 0, FRAME_CHAR } |
static ut8 | ch_reset_packet [] = { FRAME_CHAR, SET_CHANNEL_RESET, 0xff, FRAME_CHAR } |
static ut8 | ch_debug_packet [] = { FRAME_CHAR, SET_CHANNEL_DEBUG, 0xfe, FRAME_CHAR } |
static ut8 | ch_text_packet [] = { FRAME_CHAR, SET_CHANNEL_TEXT, 0xfd, FRAME_CHAR } |
Function reads data from the established connection.
instance | the "instance" of the current libqnxr session |
Definition at line 65 of file packet.c.
References DS_DATA_MAX_SIZE, EINTR, eprintf, g, READ_TIMEOUT, rz_socket_read(), rz_socket_ready(), SET_CHANNEL_NAK, SET_CHANNEL_TEXT, and unpack().
Referenced by nto_send(), and qnxr_wait().
Definition at line 135 of file packet.c.
References ch_debug_packet, g, and rz_socket_write().
Referenced by qnxr_send_packet(), and qnxr_wait().
Definition at line 131 of file packet.c.
References ch_reset_packet, g, and rz_socket_write().
Referenced by qnxr_connect().
Definition at line 139 of file packet.c.
References ch_text_packet, g, and rz_socket_write().
Referenced by qnxr_send_packet().
sends a packet sends a packet to the established connection
instance | the "instance" of the current libqnxr session |
Definition at line 143 of file packet.c.
References c, eprintf, ESC_CHAR, FRAME_CHAR, g, i, p, qnxr_send_ch_debug(), qnxr_send_ch_text(), rz_socket_write(), SET_CHANNEL_DEBUG, and SET_CHANNEL_TEXT.
Referenced by nto_send(), qnxr_stop(), and qnxr_wait().
Definition at line 34 of file packet.c.
References append(), eprintf, ESC_CHAR, FRAME_CHAR, and g.
Referenced by qnxr_read_packet().
|
static |
Definition at line 21 of file packet.c.
Referenced by qnxr_send_ch_debug().
|
static |
Definition at line 20 of file packet.c.
Referenced by qnxr_send_ch_reset().
|
static |
Definition at line 22 of file packet.c.
Referenced by qnxr_send_ch_text().
|
static |
Definition at line 19 of file packet.c.
Referenced by qnxr_send_nak().