1 #ifndef __STG_STGLIBS_BLOCK_IO_H__
2 #define __STG_STGLIBS_BLOCK_IO_H__
11 typedef std::vector<iovec> IOVec;
16 BlockReader(const IOVec& ioVec);
18 bool read(int socket);
19 bool done() const { return m_remainder == 0; }
20 size_t remainder() const { return m_remainder; }
30 BlockWriter(const IOVec& ioVec);
32 bool write(int socket);
33 bool done() const { return m_remainder == 0; }
34 size_t remainder() const { return m_remainder; }