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_PIPE_SOURCE_H
43#define CORE_PIPE_SOURCE_H
49#ifndef DOXYGEN_SHOULD_SKIP_THIS
74 bool pipe(
const std::shared_ptr<
Sink>& sink);
82 ssize_t
send(
const char* chunk, std::size_t chunkLen);
84 void error(
int errnum);
constexpr int MF_READSIZE
EventReceiver(const std::string &name)
void onEvent(const utils::Timeval ¤tTime) override
static FileReader * open(const std::string &path, const std::function< void(int)> &callback)
FileReader(int fd, const std::string &name, std::size_t pufferSize, int openErrno)
ssize_t send(const char *chunk, std::size_t chunkLen)
Source(Source &&) noexcept=default
Source & operator=(Source &&) noexcept=default
void disconnect(const Sink *sink)
bool pipe(const std::shared_ptr< Sink > &sink)
Source & operator=(Source &)=delete
ssize_t read(int fd, void *buf, std::size_t count)
int open(const char *pathname, int flags)