#include <rz_io.h>
#include <rz_lib.h>
#include <rz_socket.h>
#include <stdio.h>
#include <stdlib.h>
#include "../io_memory.h"
Go to the source code of this file.
◆ __check()
Definition at line 11 of file io_http.c.
12 return (!strncmp(
pathname,
"http://", 7));
static static fork const void static count static fd const char const char static newpath char char char static envp time_t static t const char static mode static whence const char static dir time_t static t unsigned static seconds const char struct utimbuf static buf static inc static sig const char pathname
References pathname.
Referenced by __open().
◆ __open()
Definition at line 15 of file io_http.c.
24 if (
mal->buf && rlen > 0) {
RZ_API void Ht_() free(HtName_(Ht) *ht)
static bool __check(RzIO *io, const char *pathname, bool many)
RZ_API RzIODesc * rz_io_desc_new(RzIO *io, RzIOPlugin *plugin, const char *uri, int flags, int mode, void *data)
RzIOPlugin rz_io_plugin_malloc
RZ_API char * rz_socket_http_get(const char *url, int *code, int *rlen)
References __check(), code, eprintf, free(), mal, NULL, pathname, rz_io_desc_new(), rz_io_plugin_malloc, RZ_NEW0, RZ_PERM_RW, and rz_socket_http_get().
◆ rizin_plugin
Initial value:= {
}
RzIOPlugin rz_io_plugin_http
Definition at line 48 of file io_http.c.
◆ rz_io_plugin_http
Initial value:= {
.name = "http",
.desc = "Make http get requests",
.uris = "http://",
.license = "LGPL3",
}
static RzIODesc * __open(RzIO *io, const char *pathname, int rw, int mode)
int io_memory_read(RzIO *io, RzIODesc *fd, ut8 *buf, int count)
int io_memory_write(RzIO *io, RzIODesc *fd, const ut8 *buf, int count)
ut64 io_memory_lseek(RzIO *io, RzIODesc *fd, ut64 offset, int whence)
int io_memory_close(RzIODesc *fd)
Definition at line 34 of file io_http.c.