|
IBR-DTNSuite
0.12
|
#include <ConnectionEvent.h>


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 |
| State | getState () const |
| const dtn::core::Node & | getNode () 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 &) |
Static Public Attributes | |
| static const string | className = "ConnectionEvent" |
Additional Inherited Members | |
Public Attributes inherited from dtn::core::Event | |
| const int | prio |
Protected Member Functions inherited from dtn::core::Event | |
| Event (int prio=0) | |
| void | setLoggable (bool val) |
Definition at line 33 of file ConnectionEvent.h.
| Enumerator | |
|---|---|
| CONNECTION_SETUP | |
| CONNECTION_UP | |
| CONNECTION_DOWN | |
| CONNECTION_TIMEOUT | |
Definition at line 36 of file ConnectionEvent.h.
|
virtual |
Definition at line 35 of file ConnectionEvent.cpp.
|
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::core::Node::getEID(), and dtn::data::EID::getString().

|
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().
| const dtn::core::Node & dtn::net::ConnectionEvent::getNode | ( | ) | const |
Definition at line 73 of file ConnectionEvent.cpp.
Referenced by dtn::api::EventConnection::raiseEvent(), dtn::net::ConnectionManager::raiseEvent(), and dtn::daemon::NativeDaemon::raiseEvent().
| ConnectionEvent::State dtn::net::ConnectionEvent::getState | ( | ) | const |
Definition at line 68 of file ConnectionEvent.cpp.
Referenced by dtn::api::EventConnection::raiseEvent(), dtn::net::ConnectionManager::raiseEvent(), and dtn::daemon::NativeDaemon::raiseEvent().
|
static |
Definition at line 40 of file ConnectionEvent.cpp.
References dtn::core::EventDispatcher< E >::queue().
Referenced by dtn::net::TCPConnection::eventConnectionDown(), dtn::net::TCPConnection::eventConnectionUp(), dtn::net::TCPConnection::eventTimeout(), dtn::net::TCPConvergenceLayer::open(), and dtn::net::TCPConvergenceLayer::queue().

|
static |
Definition at line 54 of file ConnectionEvent.h.
Referenced by getName().