|
Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
| #define | BUFFER_SIZE 4096 |
Functions | |
| RZ_API struct rz_socket_proc_t * | rz_socket_proc_open (char *const argv[]) |
| RZ_API int | rz_socket_proc_close (struct rz_socket_proc_t *sp) |
| RZ_API int | rz_socket_proc_read (RzSocketProc *sp, unsigned char *buf, int len) |
| RZ_API int | rz_socket_proc_gets (RzSocketProc *sp, char *buf, int size) |
| RZ_API int | rz_socket_proc_write (RzSocketProc *sp, void *buf, int len) |
| RZ_API void | rz_socket_proc_printf (RzSocketProc *sp, const char *fmt,...) |
| RZ_API int | rz_socket_proc_ready (RzSocketProc *sp, int secs, int usecs) |
| #define BUFFER_SIZE 4096 |
Definition at line 15 of file socket_proc.c.
| RZ_API int rz_socket_proc_close | ( | struct rz_socket_proc_t * | sp | ) |
Definition at line 60 of file socket_proc.c.
References close, kill, NULL, SIGKILL, and sp.
Referenced by rz_socket_proc_open().
| RZ_API int rz_socket_proc_gets | ( | RzSocketProc * | sp, |
| char * | buf, | ||
| int | size | ||
| ) |
Definition at line 82 of file socket_proc.c.
References rz_socket_t::fd, rz_socket_t::is_ssl, rz_socket_gets(), s, and sp.
| RZ_API struct rz_socket_proc_t* rz_socket_proc_open | ( | char *const | argv[] | ) |
Definition at line 17 of file socket_proc.c.
References argv, close, dup2, error(), test-lz4-list::exit, free(), NULL, RZ_NEW, rz_socket_proc_close(), rz_sys_execv(), rz_sys_fork(), rz_sys_pipe(), and sp.
| RZ_API void rz_socket_proc_printf | ( | RzSocketProc * | sp, |
| const char * | fmt, | ||
| ... | |||
| ) |
Definition at line 96 of file socket_proc.c.
References BUFFER_SIZE, rz_socket_t::fd, rz_socket_t::is_ssl, RZ_INVALID_SOCKET, rz_socket_write(), s, sp, and vsnprintf.
| RZ_API int rz_socket_proc_read | ( | RzSocketProc * | sp, |
| unsigned char * | buf, | ||
| int | len | ||
| ) |
Definition at line 75 of file socket_proc.c.
References rz_socket_t::fd, rz_socket_t::is_ssl, len, rz_socket_read(), s, and sp.
| RZ_API int rz_socket_proc_ready | ( | RzSocketProc * | sp, |
| int | secs, | ||
| int | usecs | ||
| ) |
Definition at line 110 of file socket_proc.c.
References rz_socket_t::fd, rz_socket_t::is_ssl, rz_socket_ready(), s, and sp.
| RZ_API int rz_socket_proc_write | ( | RzSocketProc * | sp, |
| void * | buf, | ||
| int | len | ||
| ) |
Definition at line 89 of file socket_proc.c.
References rz_socket_t::fd, rz_socket_t::is_ssl, len, rz_socket_write(), s, and sp.