IBR-DTNSuite  0.12
dtn::net::EMailSmtpService Class Reference

#include <EMailSmtpService.h>

Inheritance diagram for dtn::net::EMailSmtpService:
Inheritance graph
Collaboration diagram for dtn::net::EMailSmtpService:
Collaboration graph

Classes

class  Task
 

Public Member Functions

void queueTask (Task *t)
 
void submitNow (Task *t)
 
void submitQueue ()
 
void run () throw ()
 
void __cancellation () throw ()
 
- Public Member Functions inherited from ibrcommon::JoinableThread
virtual ~JoinableThread ()=0
 
void join (void) throw (ThreadException)
 
bool isRunning (void)
 
void start (int priority=0) throw (ThreadException)
 
void stop () throw ()
 

Static Public Member Functions

static EMailSmtpServicegetInstance ()
 

Additional Inherited Members

- Protected Member Functions inherited from ibrcommon::JoinableThread
 JoinableThread (size_t size=DEFAULT_STACKSIZE)
 
- Static Protected Member Functions inherited from ibrcommon::Thread
static size_t getNumberOfProcessors ()
 
static void yield (void)
 
static void sleep (time_t timeout)
 
static void concurrency (int level)
 
static bool equal (pthread_t thread1, pthread_t thread2)
 
static void * __execute__ (void *obj) throw ()
 

Detailed Description

Definition at line 39 of file EMailSmtpService.h.

Member Function Documentation

void dtn::net::EMailSmtpService::__cancellation ( )
throw (
)
virtual

The cancellation method of the thread

Implements ibrcommon::Thread.

Definition at line 181 of file EMailSmtpService.cpp.

References ibrcommon::Queue< T >::abort(), and ibrcommon::Mutex::leave().

Here is the call graph for this function:

EMailSmtpService & dtn::net::EMailSmtpService::getInstance ( )
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

Parameters
tThe task which will be stored in the submit queue

Definition at line 262 of file EMailSmtpService.cpp.

References ibrcommon::Queue< T >::push().

Referenced by dtn::net::EMailConvergenceLayer::queue().

Here is the call graph for this function:

void dtn::net::EMailSmtpService::submitNow ( Task t)

Submits the given task immediately

Parameters
tThe task which will be transmitted immediately

Definition at line 267 of file EMailSmtpService.cpp.

References ibrcommon::Mutex::leave(), and ibrcommon::Queue< T >::push().

Referenced by dtn::net::EMailConvergenceLayer::queue().

Here is the call graph for this function:

void dtn::net::EMailSmtpService::submitQueue ( )

Submits all stored tasks

Definition at line 273 of file EMailSmtpService.cpp.

References ibrcommon::Mutex::leave().

Here is the call graph for this function:


The documentation for this class was generated from the following files: