IBR-DTNSuite
0.8
|
#include <NodeHandshakeEvent.h>
Public Types | |
enum | HANDSHAKE_STATE { HANDSHAKE_REPLIED = 1, HANDSHAKE_COMPLETED = 2, HANDSHAKE_UPDATED = 3 } |
Public Member Functions | |
virtual | ~NodeHandshakeEvent () |
const std::string | getName () const |
std::string | toString () const |
Static Public Member Functions | |
static void | raiseEvent (HANDSHAKE_STATE state, const dtn::data::EID &peer) |
Public Attributes | |
HANDSHAKE_STATE | state |
dtn::data::EID | peer |
Static Public Attributes | |
static const string | className = "NodeHandshakeEvent" |
Definition at line 18 of file NodeHandshakeEvent.h.
Definition at line 21 of file NodeHandshakeEvent.h.
dtn::routing::NodeHandshakeEvent::~NodeHandshakeEvent | ( | ) | [virtual] |
Definition at line 19 of file NodeHandshakeEvent.cpp.
const std::string dtn::routing::NodeHandshakeEvent::getName | ( | ) | const [virtual] |
Implements dtn::core::Event.
Definition at line 23 of file NodeHandshakeEvent.cpp.
References className.
Referenced by toString().
void dtn::routing::NodeHandshakeEvent::raiseEvent | ( | HANDSHAKE_STATE | state, |
const dtn::data::EID & | peer | ||
) | [static] |
Definition at line 46 of file NodeHandshakeEvent.cpp.
Referenced by dtn::routing::NodeHandshakeExtension::processHandshake().
std::string dtn::routing::NodeHandshakeEvent::toString | ( | ) | const [virtual] |
Implements dtn::core::Event.
Definition at line 28 of file NodeHandshakeEvent.cpp.
References getName(), dtn::data::EID::getString(), HANDSHAKE_COMPLETED, HANDSHAKE_REPLIED, HANDSHAKE_UPDATED, peer, and state.
const string dtn::routing::NodeHandshakeEvent::className = "NodeHandshakeEvent" [static] |
Definition at line 39 of file NodeHandshakeEvent.h.
Referenced by dtn::routing::BaseRouter::componentDown(), dtn::routing::BaseRouter::componentUp(), and getName().
Definition at line 37 of file NodeHandshakeEvent.h.
Referenced by dtn::routing::EpidemicRoutingExtension::notify(), dtn::routing::ProphetRoutingExtension::notify(), and toString().
Definition at line 36 of file NodeHandshakeEvent.h.
Referenced by dtn::routing::EpidemicRoutingExtension::notify(), dtn::routing::ProphetRoutingExtension::notify(), and toString().