#ifndef __StreamReader_h__ #define __StreamReader_h__ #include "MString.h" #include "Parser.h" #include #include namespace coreutils { /// /// Use the StreamReader to read data from a socket and buffer it for use by /// various stream parsers such as IMFMessage. The reader maintains data /// consistency regardless of the packet delivery for the stream. /// class StreamReader { public: StreamReader(int fd, Parser *parser); virtual ~StreamReader(); int read(); private: int fd; vector buffer; }; } #endif