IBR-DTNSuite
0.12
|
#include <TransferAbortedEvent.h>
Public Types | |
enum | AbortReason { REASON_UNDEFINED = 0, REASON_CONNECTION_DOWN = 1, REASON_REFUSED = 2, REASON_RETRY_LIMIT_REACHED = 3, REASON_BUNDLE_DELETED = 4 } |
Public Member Functions | |
virtual | ~TransferAbortedEvent () |
const std::string | getName () const |
std::string | getMessage () const |
const dtn::data::EID & | getPeer () const |
const dtn::data::BundleID & | getBundleID () const |
Public Member Functions inherited from dtn::core::Event | |
virtual | ~Event ()=0 |
virtual std::string | toString () const |
bool | isLoggable () const |
Static Public Member Functions | |
static void | raise (const dtn::data::EID &peer, const dtn::data::BundleID &id, const AbortReason reason=REASON_UNDEFINED) |
Public Attributes | |
const AbortReason | reason |
Public Attributes inherited from dtn::core::Event | |
const int | prio |
Static Public Attributes | |
static const std::string | className = "TransferAbortedEvent" |
Additional Inherited Members | |
Protected Member Functions inherited from dtn::core::Event | |
Event (int prio=0) | |
void | setLoggable (bool val) |
Definition at line 34 of file TransferAbortedEvent.h.
Enumerator | |
---|---|
REASON_UNDEFINED | |
REASON_CONNECTION_DOWN | |
REASON_REFUSED | |
REASON_RETRY_LIMIT_REACHED | |
REASON_BUNDLE_DELETED |
Definition at line 37 of file TransferAbortedEvent.h.
|
virtual |
Definition at line 34 of file TransferAbortedEvent.cpp.
const dtn::data::BundleID & dtn::net::TransferAbortedEvent::getBundleID | ( | ) | const |
Definition at line 55 of file TransferAbortedEvent.cpp.
Referenced by dtn::api::EventConnection::raiseEvent(), dtn::routing::RetransmissionExtension::raiseEvent(), dtn::core::BundleCore::raiseEvent(), and dtn::daemon::NativeDaemon::raiseEvent().
|
virtual |
Get a describing message for this event
Implements dtn::core::Event.
Definition at line 83 of file TransferAbortedEvent.cpp.
References dtn::data::EID::getString(), and dtn::data::BundleID::toString().
|
virtual |
Get the name of this event.
Implements dtn::core::Event.
Definition at line 45 of file TransferAbortedEvent.cpp.
References className.
Referenced by dtn::api::EventConnection::raiseEvent().
const dtn::data::EID & dtn::net::TransferAbortedEvent::getPeer | ( | ) | const |
Definition at line 50 of file TransferAbortedEvent.cpp.
Referenced by dtn::api::EventConnection::raiseEvent(), dtn::routing::RetransmissionExtension::raiseEvent(), dtn::core::BundleCore::raiseEvent(), and dtn::daemon::NativeDaemon::raiseEvent().
|
static |
Definition at line 39 of file TransferAbortedEvent.cpp.
References dtn::core::EventDispatcher< E >::queue().
Referenced by dtn::net::EMailConvergenceLayer::queue(), dtn::routing::RetransmissionExtension::raiseEvent(), and dtn::net::EMailSmtpService::run().
|
static |
Definition at line 52 of file TransferAbortedEvent.h.
Referenced by getName().
const AbortReason dtn::net::TransferAbortedEvent::reason |
Definition at line 59 of file TransferAbortedEvent.h.
Referenced by dtn::core::BundleCore::raiseEvent().