|
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 |
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 |
|
static |
Creates a new set of SMTP commands.
| pipeline | set to true if the server supports pipelining |
| shared_ptr< SMTPCommand > getLastCommandSent | ( | ) | const |
Returns the last command which has been sent.
Returns the full text of the command, including command name and parameters (if any).
Reimplemented from SMTPCommand.
Returns the full text of the command, suitable for outputing to the tracer.
Reimplemented from SMTPCommand.
| bool isFinished | ( | ) | const |
Tests whether all commands have been sent.
|
virtual |
Sends this command to the specified socket.
| sok | socket to which the command will be written |
| tr | tracer |
Reimplemented from SMTPCommand.