Class for SMTP non-blocking / polling pings.
More...
|
|
| constructor (SmtpClient smtp) |
| | Creates the object based on the SmtpClient.
|
| |
|
*hash< SocketPollInfo > | continuePoll () |
| | Returns a hash to be used for I/O polling or nothing in case the poll operation is complete.
|
| |
| string | getGoal () |
| | Returns the goal.
|
| |
| string | getState () |
| | Returns the current state.
|
| |
| bool | goalReached () |
| | Returns True when the goal as been reached.
|
| |
|
|
const | SPS_COMPLETE = "complete" |
| | Complete state.
|
| |
|
const | SPS_CONNECT = "connect" |
| | Connect state.
|
| |
|
const | SPS_LOGIN = "login" |
| | Login state.
|
| |
|
const | SPS_READ_HELLO = "read-hello" |
| | Read hello state.
|
| |
|
const | SPS_READ_HELLO_REPLY = "read-hello-reply" |
| | Read hello reply state.
|
| |
|
const | SPS_READ_LOGIN_REPLY = "read-login-reply" |
| | Read login reply.
|
| |
|
const | SPS_READ_STARTTLS_REPLY = "read-starttls-reply" |
| | Read STARTTLS reply.
|
| |
|
const | SPS_SEND_HELLO = "send-hello" |
| | Send hello state.
|
| |
|
const | SPS_STARTTLS = "starttls" |
| | Send STARTTLS state.
|
| |
|
const | SPS_UPGRADE_TO_TLS = "upgrade-tls" |
| | Upgrade socket connection to TLS.
|
| |
|
| bool | getReply (reference< int > rcode, reference< string > rmsg) |
| | Private reads a reply from the SMTP server.
|
| |
|
Mutex | m () |
| | Lock for atomicity.
|
| |
|
Socket | sock () |
| | The Socket for communication with the server.
|
| |
|
| startLogin () |
| | Starts the polling login state.
|
| |
|
|
bool | esmtp = False |
| | ESMTP flag.
|
| |
|
bool | goal_reached = False |
| | Goal reached flag.
|
| |
|
string | hello_reply |
| | Server's HELO / EHLO reply.
|
| |
|
int | hello_reply_code |
| | Server's HELO / EHLO reply code.
|
| |
|
hash< auto > | info |
| | Info about the SMTP client.
|
| |
|
int | login_code |
| | Server's login code.
|
| |
|
string | login_reply |
| | Server's login reply.
|
| |
|
AbstractPollOperation | poller |
| | The current internal poll operation.
|
| |
|
int | starttls_code |
| | Server's STARTTLS code.
|
| |
|
string | starttls_reply |
| | Server's STARTTLS reply.
|
| |
|
string | state |
| | Current state.
|
| |
Class for SMTP non-blocking / polling pings.
◆ getGoal()
| string SmtpPingPollOperation::getGoal |
( |
| ) |
|
Returns the goal.
- Returns
- the goal set in the constructor
◆ getReply()
| bool SmtpPingPollOperation::getReply |
( |
reference< int > | rcode, |
|
|
reference< string > | rmsg ) |
|
protected |
Private reads a reply from the SMTP server.
- Returns
- False to continue reading, True if done
◆ getState()
| string SmtpPingPollOperation::getState |
( |
| ) |
|
Returns the current state.
- Returns
- the current state
◆ goalReached()
| bool SmtpPingPollOperation::goalReached |
( |
| ) |
|
Returns True when the goal as been reached.
- Returns
- True when the goal as been reached