IBR-DTNSuite
0.8
|
This class acts as an event receiver for SecurityCertificateManager Events and forwards them to the TLSStream class. More...
#include <TLSStreamComponent.h>
Public Member Functions | |
TLSStreamComponent () | |
The default constructor. | |
virtual | ~TLSStreamComponent () |
The default destructor. | |
virtual void | raiseEvent (const dtn::core::Event *evt) |
callback function that is called if an event happened. | |
virtual void | initialize () |
virtual void | startup () |
virtual void | terminate () |
virtual const std::string | getName () const |
This class acts as an event receiver for SecurityCertificateManager Events and forwards them to the TLSStream class.
Definition at line 21 of file TLSStreamComponent.h.
The default constructor.
Definition at line 20 of file TLSStreamComponent.cpp.
dtn::security::TLSStreamComponent::~TLSStreamComponent | ( | ) | [virtual] |
The default destructor.
Definition at line 24 of file TLSStreamComponent.cpp.
const std::string dtn::security::TLSStreamComponent::getName | ( | ) | const [virtual] |
Return an identifier for this component
Implements dtn::daemon::Component.
Definition at line 63 of file TLSStreamComponent.cpp.
void dtn::security::TLSStreamComponent::initialize | ( | ) | [virtual] |
Set up the component. At this stage no other components should be used.
Implements dtn::daemon::Component.
Definition at line 45 of file TLSStreamComponent.cpp.
References dtn::core::EventReceiver::bindEvent(), and dtn::security::CertificateManagerInitEvent::className.
void dtn::security::TLSStreamComponent::raiseEvent | ( | const dtn::core::Event * | evt | ) | [virtual] |
callback function that is called if an event happened.
evt | the event |
Implements dtn::core::EventReceiver.
Definition at line 29 of file TLSStreamComponent.cpp.
References dtn::security::CertificateManagerInitEvent::className, dtn::daemon::Configuration::getInstance(), dtn::core::Event::getName(), dtn::daemon::Configuration::getSecurity(), and init().
void dtn::security::TLSStreamComponent::startup | ( | ) | [virtual] |
Start up the component. At this stage all other components are ready.
Implements dtn::daemon::Component.
Definition at line 51 of file TLSStreamComponent.cpp.
void dtn::security::TLSStreamComponent::terminate | ( | ) | [virtual] |
Terminate the component and do some cleanup stuff. All other components still exists, but may not serve signals.
Implements dtn::daemon::Component.
Definition at line 57 of file TLSStreamComponent.cpp.
References dtn::security::CertificateManagerInitEvent::className, and dtn::core::EventReceiver::unbindEvent().