IBR-DTNSuite
0.12
|
#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 | 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 | raiseEvent (HANDSHAKE_STATE state, const dtn::data::EID &peer) |
Public Attributes | |
HANDSHAKE_STATE | state |
dtn::data::EID | peer |
Public Attributes inherited from dtn::core::Event | |
const int | prio |
Static Public Attributes | |
static const string | className = "NodeHandshakeEvent" |
Additional Inherited Members | |
Protected Member Functions inherited from dtn::core::Event | |
Event (int prio=0) | |
void | setLoggable (bool val) |
Definition at line 32 of file NodeHandshakeEvent.h.
Enumerator | |
---|---|
HANDSHAKE_REPLIED | |
HANDSHAKE_COMPLETED | |
HANDSHAKE_UPDATED |
Definition at line 35 of file NodeHandshakeEvent.h.
|
virtual |
Definition at line 34 of file NodeHandshakeEvent.cpp.
|
virtual |
Get a describing message for this event
Implements dtn::core::Event.
Definition at line 43 of file NodeHandshakeEvent.cpp.
References dtn::data::EID::getString(), HANDSHAKE_COMPLETED, HANDSHAKE_REPLIED, HANDSHAKE_UPDATED, peer, and state.
|
virtual |
Get the name of this event.
Implements dtn::core::Event.
Definition at line 38 of file NodeHandshakeEvent.cpp.
References className.
|
static |
Definition at line 61 of file NodeHandshakeEvent.cpp.
References dtn::core::EventDispatcher< E >::queue().
Referenced by dtn::routing::NodeHandshakeExtension::processHandshake().
|
static |
Definition at line 53 of file NodeHandshakeEvent.h.
Referenced by getName().
dtn::data::EID dtn::routing::NodeHandshakeEvent::peer |
Definition at line 51 of file NodeHandshakeEvent.h.
Referenced by getMessage(), dtn::routing::EpidemicRoutingExtension::raiseEvent(), and dtn::routing::ProphetRoutingExtension::raiseEvent().
HANDSHAKE_STATE dtn::routing::NodeHandshakeEvent::state |
Definition at line 50 of file NodeHandshakeEvent.h.
Referenced by getMessage(), dtn::routing::EpidemicRoutingExtension::raiseEvent(), and dtn::routing::ProphetRoutingExtension::raiseEvent().