#ifndef cmw_SendBuffer_hh #define cmw_SendBuffer_hh #include #if CHAR_BIT != 8 #error Only 8 bit char supported #endif #include #ifdef WIN_DOWS #else #include #include #endif #include class SendBuffer { protected: ::std::vector buf; public: sock_type sock_; SendBuffer (); void Reset (); void Receive (void const* data, size_t size); void Receive32 (uint32_t val); void ReceiveFile (file_type, uint32_t fl_sz); bool Flush (sockaddr* = 0, socklen_t = 0); uint32_t getBufsize() { return buf.size(); } private: SendBuffer (SendBuffer const&); SendBuffer& operator= (SendBuffer const&); }; #endif