diff --git a/280cf880a22c7d3/ZString.ipch b/280cf880a22c7d3/ZString.ipch deleted file mode 100644 index 51979e2..0000000 Binary files a/280cf880a22c7d3/ZString.ipch and /dev/null differ diff --git a/280cf880a22c7d3/mmap_address.bin b/280cf880a22c7d3/mmap_address.bin deleted file mode 100644 index 3005313..0000000 Binary files a/280cf880a22c7d3/mmap_address.bin and /dev/null differ diff --git a/IMFBoundary.cpp b/IMFBoundary.cpp new file mode 100644 index 0000000..7ededd1 --- /dev/null +++ b/IMFBoundary.cpp @@ -0,0 +1,11 @@ +#include "IMFBoundary.h" +#include "Exception.h" +#include + +namespace coreutils { + + IMFBoundary(StreamReader &reader, ZString boundary) : boundary(boundary) { + if(reader.unparsed().getLength() + } + +} \ No newline at end of file diff --git a/IMFBoundary.h b/IMFBoundary.h new file mode 100644 index 0000000..217f3cb --- /dev/null +++ b/IMFBoundary.h @@ -0,0 +1,20 @@ +#ifndef __IMFBoundary_h__ +# define __IMFBoundary_h__ + +#include "StreamReader.h" + +namespace coreutils { + + class IMFBoundary { + + public: + IMFBoundary(StreamReader &reader, ZString boundary); + + private: + ZString boundary; + + }; + +} + +#endif diff --git a/Parser.cpp b/Parser.cpp new file mode 100644 index 0000000..9455934 --- /dev/null +++ b/Parser.cpp @@ -0,0 +1,9 @@ +#include "StreamReader.h" + +namespace coreutils { + + StreamReader::StreamReader(int fd) {} + + StreamReader::~StreamReader() {} + +} diff --git a/Parser.h b/Parser.h new file mode 100644 index 0000000..630dfb6 --- /dev/null +++ b/Parser.h @@ -0,0 +1,28 @@ +#ifndef __Parser_h__ +#define __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 Parser { + + public: + Parser(int fd); + virtual ~Parser(); + + private: + vector buffer; + + }; + +} + +#endif diff --git a/StreamReader.cpp b/StreamReader.cpp new file mode 100644 index 0000000..9455934 --- /dev/null +++ b/StreamReader.cpp @@ -0,0 +1,9 @@ +#include "StreamReader.h" + +namespace coreutils { + + StreamReader::StreamReader(int fd) {} + + StreamReader::~StreamReader() {} + +} diff --git a/StreamReader.h b/StreamReader.h new file mode 100644 index 0000000..deab8ef --- /dev/null +++ b/StreamReader.h @@ -0,0 +1,28 @@ +#ifndef __StreamReader_h__ +#define __StreamReader_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); + virtual ~StreamReader(); + + private: + vector buffer; + + }; + +} + +#endif