|
VMime
|
#include <SMTPResponse.hpp>


Classes | |
| struct | enhancedStatusCode |
| class | responseLine |
| struct | state |
Public Member Functions | |
| int | getCode () const |
| const enhancedStatusCode | getEnhancedCode () const |
| const string | getText () const |
| const responseLine | getLineAt (const size_t pos) const |
| size_t | getLineCount () const |
| const responseLine | getLastLine () const |
| const state | getCurrentState () const |
Static Public Member Functions | |
| static shared_ptr< SMTPResponse > | readResponse (shared_ptr< tracer > tr, shared_ptr< socket > sok, shared_ptr< timeoutHandler > toh, const state &st) |
Additional Inherited Members | |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
A SMTP response, as sent by the server.
| int getCode | ( | ) | const |
Return the SMTP response code.
| const SMTPResponse::state getCurrentState | ( | ) | const |
Returns the current state of the response parser.
References SMTPResponse::state::responseBuffer.
| const SMTPResponse::enhancedStatusCode getEnhancedCode | ( | ) | const |
Return the SMTP enhanced status code, if available.
| const SMTPResponse::responseLine getLastLine | ( | ) | const |
Return the last line in the response.
| const SMTPResponse::responseLine getLineAt | ( | const size_t | pos | ) | const |
Return the response line at the specified position.
| pos | line index |
| size_t getLineCount | ( | ) | const |
Return the number of lines in the response.
Return the SMTP response text.
The text of each line is concatenated.
|
static |
Receive and parse a new SMTP response from the specified socket.
| tr | tracer |
| sok | socket from which to read |
| toh | time-out handler |
| st | previous state of response parser for the specified socket |
| exceptions::operation_timed_out | if no data has been received within the granted time |