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 void pipe(
Sink* sink,
const std::function<
void(
int)>& callback);
75 void pipe(
const std::shared_ptr<
Sink>& sink,
const std::function<
void(
int)>& callback);
83 ssize_t
send(
const char* chunk, std::size_t chunkLen);
85 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)
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
void pipe(const std::shared_ptr< Sink > &sink, const std::function< void(int)> &callback)
Source & operator=(Source &&) noexcept=default
void disconnect(const Sink *sink)
void pipe(Sink *sink, const std::function< void(int)> &callback)
Source & operator=(Source &)=delete
ssize_t read(int fd, void *buf, std::size_t count)
int open(const char *pathname, int flags)