IBR-DTNSuite  0.10
dtn::routing::NodeHandshakeEvent Class Reference

#include <NodeHandshakeEvent.h>

Inheritance diagram for dtn::routing::NodeHandshakeEvent:
Inheritance graph
Collaboration diagram for dtn::routing::NodeHandshakeEvent:
Collaboration graph

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)
 

Detailed Description

Definition at line 32 of file NodeHandshakeEvent.h.

Member Enumeration Documentation

Enumerator
HANDSHAKE_REPLIED 
HANDSHAKE_COMPLETED 
HANDSHAKE_UPDATED 

Definition at line 35 of file NodeHandshakeEvent.h.

Constructor & Destructor Documentation

dtn::routing::NodeHandshakeEvent::~NodeHandshakeEvent ( )
virtual

Definition at line 34 of file NodeHandshakeEvent.cpp.

Member Function Documentation

std::string dtn::routing::NodeHandshakeEvent::getMessage ( ) const
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.

Here is the call graph for this function:

const std::string dtn::routing::NodeHandshakeEvent::getName ( ) const
virtual

Get the name of this event.

Implements dtn::core::Event.

Definition at line 38 of file NodeHandshakeEvent.cpp.

References className.

void dtn::routing::NodeHandshakeEvent::raiseEvent ( HANDSHAKE_STATE  state,
const dtn::data::EID peer 
)
static

Definition at line 61 of file NodeHandshakeEvent.cpp.

References dtn::core::EventDispatcher< E >::raise().

Referenced by dtn::routing::NodeHandshakeExtension::processHandshake().

Here is the call graph for this function:

Member Data Documentation

const string dtn::routing::NodeHandshakeEvent::className = "NodeHandshakeEvent"
static

Definition at line 53 of file NodeHandshakeEvent.h.

Referenced by getName().

HANDSHAKE_STATE dtn::routing::NodeHandshakeEvent::state

The documentation for this class was generated from the following files: