IBR-DTN
1.0.0
|
#include <EMailSmtpService.h>
Classes | |
class | Task |
Public Member Functions | |
void | queueTask (Task *t) |
void | submitNow (Task *t) |
void | submitQueue () |
void | run () throw () |
void | __cancellation () throw () |
Static Public Member Functions | |
static EMailSmtpService & | getInstance () |
Definition at line 39 of file EMailSmtpService.h.
void dtn::net::EMailSmtpService::__cancellation | ( | ) | ||
throw | ( | |||
) |
The cancellation method of the thread
Definition at line 181 of file EMailSmtpService.cpp.
|
static |
Returns the instance of the SMTP service
Definition at line 41 of file EMailSmtpService.cpp.
void dtn::net::EMailSmtpService::queueTask | ( | Task * | t | ) |
Stores the given task in the submit queue
t | The task which will be stored in the submit queue |
Definition at line 262 of file EMailSmtpService.cpp.
Referenced by dtn::net::EMailConvergenceLayer::queue().
void dtn::net::EMailSmtpService::run | ( | void | ) | ||
throw | ( | ||||
) |
The run method of the thread
Definition at line 123 of file EMailSmtpService.cpp.
References dtn::storage::BundleStorage::contains(), dtn::net::BundleTransfer::getBundle(), dtn::core::Node::getEID(), dtn::net::EMailImapService::getInstance(), dtn::net::EMailSmtpService::Task::getJob(), dtn::net::EMailSmtpService::Task::getNode(), dtn::daemon::Configuration::EMail::getSmtpKeepAliveTimeout(), dtn::net::TransferAbortedEvent::raise(), dtn::net::TransferAbortedEvent::REASON_CONNECTION_DOWN, dtn::net::TransferAbortedEvent::REASON_UNDEFINED, and dtn::net::EMailImapService::storeProcessedTask().
void dtn::net::EMailSmtpService::submitNow | ( | Task * | t | ) |
Submits the given task immediately
t | The task which will be transmitted immediately |
Definition at line 267 of file EMailSmtpService.cpp.
Referenced by dtn::net::EMailConvergenceLayer::queue().
void dtn::net::EMailSmtpService::submitQueue | ( | ) |
Submits all stored tasks
Definition at line 273 of file EMailSmtpService.cpp.