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

#include <ConnectionEvent.h>

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

Public Types

enum  State { CONNECTION_SETUP = 0, CONNECTION_UP = 1, CONNECTION_DOWN = 2, CONNECTION_TIMEOUT = 3 }
 

Public Member Functions

virtual ~ConnectionEvent ()
 
const string getName () const
 
std::string getMessage () 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 (State, const dtn::core::Node &)
 

Public Attributes

const State state
 
const dtn::data::EID peer
 
const dtn::core::Node node
 
- Public Attributes inherited from dtn::core::Event
const int prio
 

Static Public Attributes

static const string className = "ConnectionEvent"
 

Additional Inherited Members

- Protected Member Functions inherited from dtn::core::Event
 Event (int prio=0)
 
void setLoggable (bool val)
 

Detailed Description

Definition at line 33 of file ConnectionEvent.h.

Member Enumeration Documentation

Enumerator
CONNECTION_SETUP 
CONNECTION_UP 
CONNECTION_DOWN 
CONNECTION_TIMEOUT 

Definition at line 36 of file ConnectionEvent.h.

Constructor & Destructor Documentation

dtn::net::ConnectionEvent::~ConnectionEvent ( )
virtual

Definition at line 35 of file ConnectionEvent.cpp.

Member Function Documentation

std::string dtn::net::ConnectionEvent::getMessage ( ) const
virtual

Get a describing message for this event

Implements dtn::core::Event.

Definition at line 52 of file ConnectionEvent.cpp.

References CONNECTION_DOWN, CONNECTION_SETUP, CONNECTION_TIMEOUT, CONNECTION_UP, dtn::data::EID::getString(), peer, and state.

Here is the call graph for this function:

const string dtn::net::ConnectionEvent::getName ( ) const
virtual

Get the name of this event.

Implements dtn::core::Event.

Definition at line 46 of file ConnectionEvent.cpp.

References className.

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

Member Data Documentation

const string dtn::net::ConnectionEvent::className = "ConnectionEvent"
static

Definition at line 50 of file ConnectionEvent.h.

Referenced by getName().

const dtn::core::Node dtn::net::ConnectionEvent::node

Definition at line 56 of file ConnectionEvent.h.

Referenced by dtn::net::ConnectionManager::raiseEvent().


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