VMime
|
Public Member Functions | |
SMTPChunkingOutputStreamAdapter (shared_ptr< SMTPConnection > conn, const size_t size, utility::progressListener *progress) | |
void | flush () |
size_t | getBlockSize () |
![]() | |
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]) |
![]() | |
virtual | ~stream () |
Protected Member Functions | |
void | writeImpl (const byte_t *const data, const size_t count) |
![]() | |
object () | |
object (const object &) | |
object & | operator= (const object &) |
virtual | ~object () |
An output stream adapter used with ESMTP CHUNKING extension.
SMTPChunkingOutputStreamAdapter | ( | shared_ptr< SMTPConnection > | conn, |
const size_t | size, | ||
utility::progressListener * | progress | ||
) |
References progressListener::start().
|
virtual |
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().
|
virtual |
Return the preferred maximum block size when reading from or writing to this stream.
Reimplemented from stream.
Write data to the stream.
This is the method to be implemented is subclasses.
data | buffer containing data to write |
count | number of bytes to write |
Implements outputStream.
References vmime::count().