|
IBR-DTNSuite
0.10
|
#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 |
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) |
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::data::EID::getString(), peer, and state.

|
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().
|
static |
Definition at line 40 of file ConnectionEvent.cpp.
References dtn::core::EventDispatcher< E >::raise().
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 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().
| const dtn::data::EID dtn::net::ConnectionEvent::peer |
Definition at line 55 of file ConnectionEvent.h.
Referenced by getMessage(), dtn::routing::StaticRoutingExtension::notify(), dtn::routing::NeighborRoutingExtension::notify(), dtn::routing::FloodRoutingExtension::notify(), dtn::routing::EpidemicRoutingExtension::notify(), dtn::routing::ProphetRoutingExtension::notify(), dtn::api::EventConnection::raiseEvent(), and dtn::daemon::NativeDaemon::raiseEvent().
| const State dtn::net::ConnectionEvent::state |
Definition at line 54 of file ConnectionEvent.h.
Referenced by getMessage(), dtn::routing::StaticRoutingExtension::notify(), dtn::routing::NeighborRoutingExtension::notify(), dtn::routing::FloodRoutingExtension::notify(), dtn::routing::EpidemicRoutingExtension::notify(), dtn::routing::ProphetRoutingExtension::notify(), dtn::api::EventConnection::raiseEvent(), dtn::net::ConnectionManager::raiseEvent(), and dtn::daemon::NativeDaemon::raiseEvent().