IBR-DTNSuite  0.10
dtn::net::TransferAbortedEvent Class Reference

#include <TransferAbortedEvent.h>

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

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::EIDgetPeer () const
 
const dtn::data::BundleIDgetBundleID () 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::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
 
- 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)
 

Detailed Description

Definition at line 34 of file TransferAbortedEvent.h.

Member Enumeration Documentation

Enumerator
REASON_UNDEFINED 
REASON_CONNECTION_DOWN 
REASON_REFUSED 
REASON_RETRY_LIMIT_REACHED 
REASON_BUNDLE_DELETED 

Definition at line 37 of file TransferAbortedEvent.h.

Constructor & Destructor Documentation

dtn::net::TransferAbortedEvent::~TransferAbortedEvent ( )
virtual

Definition at line 39 of file TransferAbortedEvent.cpp.

Member Function Documentation

string dtn::net::TransferAbortedEvent::getMessage ( ) const
virtual

Get a describing message for this event

Implements dtn::core::Event.

Definition at line 94 of file TransferAbortedEvent.cpp.

References dtn::data::EID::getString(), and dtn::data::BundleID::toString().

Here is the call graph for this function:

const std::string dtn::net::TransferAbortedEvent::getName ( ) const
virtual

Get the name of this event.

Implements dtn::core::Event.

Definition at line 56 of file TransferAbortedEvent.cpp.

References className.

Referenced by dtn::api::EventConnection::raiseEvent().

void dtn::net::TransferAbortedEvent::raise ( const dtn::data::EID peer,
const dtn::data::Bundle bundle,
const AbortReason  reason = REASON_UNDEFINED 
)
static

Definition at line 44 of file TransferAbortedEvent.cpp.

References dtn::core::EventDispatcher< E >::raise().

Referenced by dtn::routing::RetransmissionExtension::notify().

Here is the call graph for this function:

void dtn::net::TransferAbortedEvent::raise ( const dtn::data::EID peer,
const dtn::data::BundleID id,
const AbortReason  reason = REASON_UNDEFINED 
)
static

Definition at line 50 of file TransferAbortedEvent.cpp.

References dtn::core::EventDispatcher< E >::raise().

Here is the call graph for this function:

Member Data Documentation

const std::string dtn::net::TransferAbortedEvent::className = "TransferAbortedEvent"
static

Definition at line 52 of file TransferAbortedEvent.h.

Referenced by getName().

const AbortReason dtn::net::TransferAbortedEvent::reason

Definition at line 60 of file TransferAbortedEvent.h.

Referenced by dtn::core::BundleCore::raiseEvent().


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