|
VMime
|
#include <SMTPCommandSet.hpp>


Public Member Functions | |
| void | addCommand (shared_ptr< SMTPCommand > cmd) |
| bool | isFinished () const |
| shared_ptr< SMTPCommand > | getLastCommandSent () const |
| void | writeToSocket (shared_ptr< socket > sok, shared_ptr< tracer > tr) |
| const string | getText () const |
| const string | getTraceText () const |
Static Public Member Functions | |
| static shared_ptr< SMTPCommandSet > | create (const bool pipeline) |
| Static Public Member Functions inherited from SMTPCommand | |
| static shared_ptr< SMTPCommand > | HELO (const string &hostname) |
| static shared_ptr< SMTPCommand > | EHLO (const string &hostname) |
| static shared_ptr< SMTPCommand > | AUTH (const string &mechName) |
| static shared_ptr< SMTPCommand > | AUTH (const string &mechName, const std::string &initialResponse) |
| static shared_ptr< SMTPCommand > | STARTTLS () |
| static shared_ptr< SMTPCommand > | MAIL (const mailbox &mbox, const bool utf8) |
| static shared_ptr< SMTPCommand > | MAIL (const mailbox &mbox, const bool utf8, const size_t size) |
| static shared_ptr< SMTPCommand > | RCPT (const mailbox &mbox, const bool utf8) |
| static shared_ptr< SMTPCommand > | RSET () |
| static shared_ptr< SMTPCommand > | DATA () |
| static shared_ptr< SMTPCommand > | BDAT (const size_t chunkSize, const bool last) |
| static shared_ptr< SMTPCommand > | NOOP () |
| static shared_ptr< SMTPCommand > | QUIT () |
| static shared_ptr< SMTPCommand > | createCommand (const string &text, const string &traceText="") |
Additional Inherited Members | |
| Protected Member Functions inherited from SMTPCommand | |
| SMTPCommand (const string &text, const string &traceText) | |
| SMTPCommand (const SMTPCommand &) | |
| Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
A set of SMTP commands, which may be sent all at once to the server if pipelining is supported.
| void addCommand | ( | shared_ptr< SMTPCommand > | cmd | ) |
Adds a new command to this set.
If one or more comments have already been sent to the server, an exception will be thrown.
| cmd | command to add |
References addCommand().
Referenced by addCommand().
|
static |
Creates a new set of SMTP commands.
| pipeline | set to true if the server supports pipelining |
References create().
Referenced by create().
| shared_ptr< SMTPCommand > getLastCommandSent | ( | ) | const |
Returns the last command which has been sent.
References getLastCommandSent().
Referenced by getLastCommandSent().
|
virtual |
Returns the full text of the command, including command name and parameters (if any).
Reimplemented from SMTPCommand.
References getText().
Referenced by getText().
|
virtual |
Returns the full text of the command, suitable for outputing to the tracer.
Reimplemented from SMTPCommand.
References getTraceText().
Referenced by getTraceText().
| bool isFinished | ( | ) | const |
Tests whether all commands have been sent.
References isFinished().
Referenced by isFinished().
Sends this command to the specified socket.
| sok | socket to which the command will be written |
| tr | tracer |
Reimplemented from SMTPCommand.
References writeToSocket().
Referenced by writeToSocket().