#ifndef __StreamReader_h__
#define __StreamReader_h__

#include <fstream>
#include <vector>

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);
      virtual ~StreamReader();      
      
    private:
      vector<MString> buffer;
      
   };

}

#endif
