Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes

dtn::net::ConnectionEvent Class Reference

#include <ConnectionEvent.h>

Inherits dtn::core::Event.

Collaboration diagram for dtn::net::ConnectionEvent:
Collaboration graph
[legend]

List of all members.

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"

Detailed Description

Definition at line 19 of file ConnectionEvent.h.


Member Enumeration Documentation

Enumerator:
CONNECTION_SETUP 
CONNECTION_UP 
CONNECTION_DOWN 
CONNECTION_TIMEOUT 

Definition at line 22 of file ConnectionEvent.h.


Constructor & Destructor Documentation

dtn::net::ConnectionEvent::~ConnectionEvent (  )  [virtual]

Definition at line 20 of file ConnectionEvent.cpp.


Member Function Documentation

const string dtn::net::ConnectionEvent::getName (  )  const [virtual]

Implements dtn::core::Event.

Definition at line 31 of file ConnectionEvent.cpp.

References className.

void dtn::net::ConnectionEvent::raise ( State  s,
const dtn::core::Node n 
) [static]
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.

Here is the call graph for this function:


Member Data Documentation

const string dtn::net::ConnectionEvent::className = "ConnectionEvent" [static]

Definition at line 42 of file ConnectionEvent.h.

Referenced by dtn::net::ConnectionManager::raiseEvent().

Definition at line 41 of file ConnectionEvent.h.

Referenced by toString().

Definition at line 40 of file ConnectionEvent.h.

Referenced by dtn::net::ConnectionManager::raiseEvent(), and toString().


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