IBR-DTNSuite  0.8
dtn::net::ConnectionEvent Class Reference

#include <ConnectionEvent.h>

Inheritance diagram for dtn::net::ConnectionEvent:
Collaboration diagram for dtn::net::ConnectionEvent:

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

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.

Referenced by dtn::api::EventConnection::raiseEvent().

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


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