1 | #ifndef STREAMREADER_H |
---|---|
2 | #define STREAMREADER_H |
3 | |
4 | #include <memory> |
5 | #include <string> |
6 | |
7 | namespace jsonrpc { |
8 | class StreamReader { |
9 | public: |
10 | StreamReader(size_t buffersize); |
11 | virtual ~StreamReader(); |
12 | |
13 | bool Read(std::string &target, int fd, char delimiter); |
14 | |
15 | private: |
16 | size_t buffersize; |
17 | char *buffer; |
18 | }; |
19 | } // namespace jsonrpc |
20 | #endif // STREAMREADER_H |
21 |