2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#ifndef CORE_FILE_FILEREADER_H
43#define CORE_FILE_FILEREADER_H
45#include "core/EventReceiver.h"
46#include "core/file/File.h"
47#include "core/pipe/Source.h"
49#ifndef DOXYGEN_SHOULD_SKIP_THIS
61 ,
virtual public File {
63 FileReader(
int fd,
const std::string& name, std::size_t pufferSize,
int openErrno);
constexpr int MF_READSIZE
EventReceiver(const std::string &name)
void onEvent(const utils::Timeval ¤tTime) override
static FileReader * open(const std::string &path)
FileReader(int fd, const std::string &name, std::size_t pufferSize, int openErrno)
ssize_t send(const char *chunk, std::size_t chunkLen)
ssize_t read(int fd, void *buf, std::size_t count)
int open(const char *pathname, int flags)