SMTPChunkingOutputStreamAdapter Class Reference
Inheritance diagram for SMTPChunkingOutputStreamAdapter:
Collaboration diagram for SMTPChunkingOutputStreamAdapter:

Public Member Functions

 SMTPChunkingOutputStreamAdapter (shared_ptr< SMTPConnection > conn, const size_t size, utility::progressListener *progress)
void flush ()
size_t getBlockSize ()
- Public Member Functions inherited from outputStream
void write (const byte_t *const data, const size_t count)
void write (const char *const data, const size_t count)
template<int N>
void write (const char(&data)[N])
- Public Member Functions inherited from stream
virtual ~stream ()

Protected Member Functions

void writeImpl (const byte_t *const data, const size_t count)
- Protected Member Functions inherited from object
 object ()
 object (const object &)
objectoperator= (const object &)
virtual ~object ()

Detailed Description

An output stream adapter used with ESMTP CHUNKING extension.

Constructor & Destructor Documentation

SMTPChunkingOutputStreamAdapter ( shared_ptr< SMTPConnection conn,
const size_t  size,
utility::progressListener progress 

Member Function Documentation

void flush ( )

Flush this output stream and forces any buffered output bytes to be written out to the stream.

Implements outputStream.

References progressListener::stop().

Referenced by SMTPTransport::send().

size_t getBlockSize ( )

Return the preferred maximum block size when reading from or writing to this stream.

block size, in bytes

Reimplemented from stream.

void writeImpl ( const byte_t *const  data,
const size_t  count 

Write data to the stream.

This is the method to be implemented is subclasses.

databuffer containing data to write
countnumber of bytes to write

Implements outputStream.

References vmime::count().

The documentation for this class was generated from the following files: