class Poco::Net::HTTPFixedLengthStreamBuf
Overview
This is the streambuf class used for reading and writing fixed-size HTTP message bodies. Moreā¦
#include <HTTPFixedLengthStream.h> class HTTPFixedLengthStreamBuf: public Poco::BasicBufferedStreamBuf { public: // typedefs typedef HTTPBasicStreamBuf::openmode openmode; typedef std::streamsize ContentLength; // construction HTTPFixedLengthStreamBuf( HTTPSession& session, ContentLength length, openmode mode ); protected: // methods int readFromDevice( char* buffer, std::streamsize length ); int writeToDevice( const char* buffer, std::streamsize length ); };
Inherited Members
public: // methods virtual int_type overflow(int_type c); virtual int_type underflow(); virtual int sync(); protected: // typedefs typedef std::basic_streambuf<ch, tr> Base; typedef std::basic_ios<ch, tr> IOS; typedef ch char_type; typedef tr char_traits; typedef ba Allocator; typedef Base::int_type int_type; typedef Base::pos_type pos_type; typedef Base::off_type off_type; typedef IOS::openmode openmode; // methods void setMode(openmode mode); openmode getMode() const;
Detailed Documentation
This is the streambuf class used for reading and writing fixed-size HTTP message bodies.
At most a given number of bytes are read or written.