Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Functions | |
RZ_API void | rz_socket_http_server_set_breaked (bool *b) |
RZ_API RzSocketHTTPRequest * | rz_socket_http_accept (RzSocket *s, RzSocketHTTPOptions *so) |
RZ_API void | rz_socket_http_response (RzSocketHTTPRequest *rs, int code, const char *out, int len, const char *headers) |
RZ_API ut8 * | rz_socket_http_handle_upload (const ut8 *str, int len, int *retlen) |
RZ_API void | rz_socket_http_close (RzSocketHTTPRequest *rs) |
Variables | |
static bool * | breaked = NULL |
RZ_API RzSocketHTTPRequest* rz_socket_http_accept | ( | RzSocket * | s, |
RzSocketHTTPOptions * | so | ||
) |
Definition at line 13 of file socket_http_server.c.
References rz_socket_http_options::accept_timeout, rz_socket_http_request::agent, rz_socket_http_request::auth, rz_socket_http_options::authtokens, breaked, calloc(), rz_socket_http_request::data, rz_socket_http_request::data_length, eprintf, free(), rz_socket_http_request::host, rz_socket_http_options::httpauth, malloc(), memset(), rz_socket_http_request::method, NULL, p, rz_socket_http_request::path, rz_socket_http_request::referer, rz_base64_decode(), RZ_NEW0, rz_socket_accept(), rz_socket_accept_timeout(), rz_socket_block_time(), rz_socket_gets(), rz_socket_http_close(), rz_socket_read_block(), rz_socket_ready(), s, rz_socket_http_request::s, ST32_ADD_OVFCHK, strdup(), and rz_socket_http_options::timeout.
Referenced by rz_core_rtr_http_run(), and rz_main_rz_agent().
RZ_API void rz_socket_http_close | ( | RzSocketHTTPRequest * | rs | ) |
Definition at line 191 of file socket_http_server.c.
References free(), rs, and rz_socket_free().
Referenced by rz_core_rtr_http_run(), rz_main_rz_agent(), and rz_socket_http_accept().
Definition at line 144 of file socket_http_server.c.
References test_evm::end, len, malloc(), memcpy(), NULL, and cmd_descs_generate::str.
Referenced by rz_core_rtr_http_run().
RZ_API void rz_socket_http_response | ( | RzSocketHTTPRequest * | rs, |
int | code, | ||
const char * | out, | ||
int | len, | ||
const char * | headers | ||
) |
Definition at line 122 of file socket_http_server.c.
References len, out, rs, rz_socket_printf(), and rz_socket_write().
Referenced by rz_core_rtr_http_run(), and rz_main_rz_agent().
Definition at line 9 of file socket_http_server.c.
Referenced by rz_core_rtr_http_stop().
Definition at line 7 of file socket_http_server.c.
Referenced by rz_socket_http_accept(), and rz_socket_http_server_set_breaked().