]> git.stg.codes - stg.git/blobdiff - stglibs/common.lib/include/stg/blockio.h
Port to CMake, get rid of os_int.h.
[stg.git] / stglibs / common.lib / include / stg / blockio.h
diff --git a/stglibs/common.lib/include/stg/blockio.h b/stglibs/common.lib/include/stg/blockio.h
deleted file mode 100644 (file)
index 3879e39..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#ifndef __STG_STGLIBS_BLOCK_IO_H__
-#define __STG_STGLIBS_BLOCK_IO_H__
-
-#include <vector>
-
-#include <sys/uio.h>
-
-namespace STG
-{
-
-typedef std::vector<iovec> IOVec;
-
-class BlockReader
-{
-    public:
-        BlockReader(const IOVec& ioVec);
-
-        bool read(int socket);
-        bool done() const { return m_remainder == 0; }
-        size_t remainder() const { return m_remainder; }
-
-    private:
-        IOVec m_dest;
-        size_t m_remainder;
-};
-
-class BlockWriter
-{
-    public:
-        BlockWriter(const IOVec& ioVec);
-
-        bool write(int socket);
-        bool done() const { return m_remainder == 0; }
-        size_t remainder() const { return m_remainder; }
-
-    private:
-        IOVec m_source;
-        size_t m_remainder;
-};
-
-} // namespace STG
-
-#endif