IBR-DTNSuite
0.8
|
#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 |
string | toString () const |
const dtn::data::EID & | getPeer () const |
const dtn::data::BundleID & | getBundleID () const |
Static Public Member Functions | |
static void | raise (const dtn::data::EID &peer, const dtn::data::Bundle &bundle, const AbortReason reason=REASON_UNDEFINED) |
static void | raise (const dtn::data::EID &peer, const dtn::data::BundleID &id, const AbortReason reason=REASON_UNDEFINED) |
Public Attributes | |
const AbortReason | reason |
Static Public Attributes | |
static const std::string | className = "TransferAbortedEvent" |
Definition at line 20 of file TransferAbortedEvent.h.
REASON_UNDEFINED | |
REASON_CONNECTION_DOWN | |
REASON_REFUSED | |
REASON_RETRY_LIMIT_REACHED | |
REASON_BUNDLE_DELETED |
Definition at line 23 of file TransferAbortedEvent.h.
dtn::net::TransferAbortedEvent::~TransferAbortedEvent | ( | ) | [virtual] |
Definition at line 24 of file TransferAbortedEvent.cpp.
const dtn::data::BundleID & dtn::net::TransferAbortedEvent::getBundleID | ( | ) | const |
Definition at line 51 of file TransferAbortedEvent.cpp.
Referenced by dtn::routing::RetransmissionExtension::notify(), and dtn::routing::NeighborRoutingExtension::notify().
const std::string dtn::net::TransferAbortedEvent::getName | ( | ) | const [virtual] |
Implements dtn::core::Event.
Definition at line 41 of file TransferAbortedEvent.cpp.
References className.
const dtn::data::EID & dtn::net::TransferAbortedEvent::getPeer | ( | ) | const |
Definition at line 46 of file TransferAbortedEvent.cpp.
Referenced by dtn::routing::StaticRoutingExtension::notify(), dtn::routing::RetransmissionExtension::notify(), dtn::routing::NeighborRoutingExtension::notify(), dtn::routing::FloodRoutingExtension::notify(), dtn::routing::EpidemicRoutingExtension::notify(), and dtn::routing::ProphetRoutingExtension::notify().
void dtn::net::TransferAbortedEvent::raise | ( | const dtn::data::EID & | peer, |
const dtn::data::Bundle & | bundle, | ||
const AbortReason | reason = REASON_UNDEFINED |
||
) | [static] |
Definition at line 29 of file TransferAbortedEvent.cpp.
References dtn::core::Event::raiseEvent().
Referenced by dtn::net::FileConvergenceLayer::componentRun(), dtn::net::TCPConnection::eventBundleRefused(), dtn::routing::RetransmissionExtension::notify(), dtn::net::UDPConvergenceLayer::queue(), dtn::net::HTTPConvergenceLayer::queue(), and dtn::core::BundleCore::transferTo().
void dtn::net::TransferAbortedEvent::raise | ( | const dtn::data::EID & | peer, |
const dtn::data::BundleID & | id, | ||
const AbortReason | reason = REASON_UNDEFINED |
||
) | [static] |
Definition at line 35 of file TransferAbortedEvent.cpp.
References dtn::core::Event::raiseEvent().
string dtn::net::TransferAbortedEvent::toString | ( | ) | const [virtual] |
Implements dtn::core::Event.
Definition at line 79 of file TransferAbortedEvent.cpp.
References className, dtn::data::EID::getString(), and dtn::data::BundleID::toString().
const std::string dtn::net::TransferAbortedEvent::className = "TransferAbortedEvent" [static] |
Definition at line 38 of file TransferAbortedEvent.h.
Referenced by dtn::routing::BaseRouter::componentDown(), dtn::routing::BaseRouter::componentUp(), dtn::api::EventConnection::finally(), getName(), dtn::api::EventConnection::setup(), and toString().
Definition at line 46 of file TransferAbortedEvent.h.
Referenced by dtn::routing::NeighborRoutingExtension::notify().