IBR-DTNSuite
0.8
|
#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 | toString () 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 |
Static Public Attributes | |
static const string | className = "ConnectionEvent" |
Definition at line 19 of file ConnectionEvent.h.
Definition at line 22 of file ConnectionEvent.h.
dtn::net::ConnectionEvent::~ConnectionEvent | ( | ) | [virtual] |
Definition at line 20 of file ConnectionEvent.cpp.
const string dtn::net::ConnectionEvent::getName | ( | ) | const [virtual] |
Implements dtn::core::Event.
Definition at line 31 of file ConnectionEvent.cpp.
References className.
Referenced by dtn::api::EventConnection::raiseEvent().
void dtn::net::ConnectionEvent::raise | ( | State | s, |
const dtn::core::Node & | n | ||
) | [static] |
Definition at line 25 of file ConnectionEvent.cpp.
References dtn::core::Event::raiseEvent().
Referenced by dtn::net::TCPConnection::eventConnectionDown(), dtn::net::TCPConnection::eventConnectionUp(), and dtn::net::TCPConnection::eventTimeout().
std::string dtn::net::ConnectionEvent::toString | ( | ) | const [virtual] |
Implements dtn::core::Event.
Definition at line 37 of file ConnectionEvent.cpp.
References className, CONNECTION_DOWN, CONNECTION_SETUP, CONNECTION_TIMEOUT, CONNECTION_UP, dtn::data::EID::getString(), peer, and state.
const string dtn::net::ConnectionEvent::className = "ConnectionEvent" [static] |
Definition at line 36 of file ConnectionEvent.h.
Referenced by dtn::net::ConnectionManager::componentDown(), dtn::routing::BaseRouter::componentDown(), dtn::net::ConnectionManager::componentUp(), dtn::routing::BaseRouter::componentUp(), dtn::api::EventConnection::finally(), getName(), dtn::api::EventConnection::setup(), and toString().
Definition at line 42 of file ConnectionEvent.h.
Referenced by dtn::net::ConnectionManager::raiseEvent().
Definition at line 41 of file ConnectionEvent.h.
Referenced by dtn::routing::StaticRoutingExtension::notify(), dtn::routing::NeighborRoutingExtension::notify(), dtn::routing::FloodRoutingExtension::notify(), dtn::api::EventConnection::raiseEvent(), dtn::net::ConnectionManager::raiseEvent(), and toString().
Definition at line 40 of file ConnectionEvent.h.
Referenced by dtn::routing::StaticRoutingExtension::notify(), dtn::routing::NeighborRoutingExtension::notify(), dtn::routing::FloodRoutingExtension::notify(), dtn::api::EventConnection::raiseEvent(), dtn::net::ConnectionManager::raiseEvent(), and toString().