IBR-DTNSuite  0.10
dtn::api::EventConnection Class Reference

#include <EventConnection.h>

Inheritance diagram for dtn::api::EventConnection:
Inheritance graph
Collaboration diagram for dtn::api::EventConnection:
Collaboration graph

Public Member Functions

 EventConnection (ClientHandler &client, ibrcommon::socketstream &stream)
 
virtual ~EventConnection ()
 
void run ()
 
void finally ()
 
void setup ()
 
void __cancellation () throw ()
 
void raiseEvent (const dtn::core::Event *evt) throw ()
 
- Public Member Functions inherited from dtn::api::ProtocolHandler
virtual ~ProtocolHandler ()=0
 
- Public Member Functions inherited from dtn::core::EventReceiver
virtual ~EventReceiver ()=0
 

Additional Inherited Members

- Protected Member Functions inherited from dtn::api::ProtocolHandler
 ProtocolHandler (ClientHandler &client, ibrcommon::socketstream &stream)
 
- Protected Attributes inherited from dtn::api::ProtocolHandler
ClientHandler_client
 
ibrcommon::socketstream_stream
 

Detailed Description

Definition at line 32 of file EventConnection.h.

Constructor & Destructor Documentation

dtn::api::EventConnection::EventConnection ( ClientHandler client,
ibrcommon::socketstream stream 
)

Definition at line 40 of file EventConnection.cpp.

dtn::api::EventConnection::~EventConnection ( )
virtual

Definition at line 45 of file EventConnection.cpp.

Member Function Documentation

void dtn::api::EventConnection::__cancellation ( ) throw ()
virtual

Implements dtn::api::ProtocolHandler.

Definition at line 365 of file EventConnection.cpp.

void dtn::api::EventConnection::finally ( void  )
virtual

Implements dtn::api::ProtocolHandler.

Definition at line 352 of file EventConnection.cpp.

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

Here is the call graph for this function:

void dtn::api::EventConnection::raiseEvent ( const dtn::core::Event evt) throw ()
virtual

Implements dtn::core::EventReceiver.

Definition at line 49 of file EventConnection.cpp.

References _running, dtn::data::MetaBundle::appdatalength, dtn::data::PrimaryBlock::appdatalength, dtn::routing::QueueBundleEvent::bundle, dtn::net::BundleReceivedEvent::bundle, dtn::net::ConnectionEvent::CONNECTION_DOWN, dtn::net::ConnectionEvent::CONNECTION_SETUP, dtn::net::ConnectionEvent::CONNECTION_TIMEOUT, dtn::net::ConnectionEvent::CONNECTION_UP, dtn::core::CUSTODY_ACCEPT, dtn::core::CUSTODY_REJECT, dtn::data::MetaBundle::destination, dtn::data::PrimaryBlock::destination, dtn::data::BundleID::fragment, dtn::data::PrimaryBlock::FRAGMENT, dtn::data::PrimaryBlock::fragmentoffset, dtn::net::BundleReceivedEvent::fromlocal, dtn::data::PrimaryBlock::get(), dtn::core::CustodyEvent::getAction(), dtn::core::NodeEvent::getAction(), dtn::core::GlobalEvent::getAction(), dtn::core::CustodyEvent::getBundle(), dtn::net::TransferCompletedEvent::getBundle(), dtn::net::TransferAbortedEvent::getBundleID(), dtn::core::Node::getEID(), dtn::net::TransferCompletedEvent::getName(), dtn::net::BundleReceivedEvent::getName(), dtn::routing::QueueBundleEvent::getName(), dtn::net::ConnectionEvent::getName(), dtn::core::CustodyEvent::getName(), dtn::net::TransferAbortedEvent::getName(), dtn::core::NodeEvent::getName(), dtn::core::GlobalEvent::getName(), dtn::core::NodeEvent::getNode(), dtn::net::TransferCompletedEvent::getPeer(), dtn::net::TransferAbortedEvent::getPeer(), dtn::data::EID::getString(), dtn::core::GlobalEvent::GLOBAL_BUSY, dtn::core::GlobalEvent::GLOBAL_IDLE, dtn::core::GlobalEvent::GLOBAL_INTERNET_AVAILABLE, dtn::core::GlobalEvent::GLOBAL_INTERNET_UNAVAILABLE, dtn::core::GlobalEvent::GLOBAL_POWERSAVE, dtn::core::GlobalEvent::GLOBAL_RELOAD, dtn::core::GlobalEvent::GLOBAL_SHUTDOWN, dtn::core::GlobalEvent::GLOBAL_SUSPEND, dtn::data::MetaBundle::lifetime, dtn::data::PrimaryBlock::lifetime, dtn::core::NODE_AVAILABLE, dtn::core::NODE_DATA_ADDED, dtn::core::NODE_DATA_REMOVED, dtn::core::NODE_UNAVAILABLE, dtn::data::BundleID::offset, dtn::net::BundleReceivedEvent::peer, dtn::net::ConnectionEvent::peer, dtn::data::MetaBundle::procflags, dtn::data::PrimaryBlock::procflags, dtn::data::BundleID::sequencenumber, dtn::data::PrimaryBlock::sequencenumber, dtn::data::BundleID::source, dtn::data::PrimaryBlock::source, dtn::net::ConnectionEvent::state, dtn::data::BundleID::timestamp, dtn::data::PrimaryBlock::timestamp, and dtn::data::SDNV< E >::toString().

Here is the call graph for this function:

void dtn::api::EventConnection::run ( void  )
virtual

Implements dtn::api::ProtocolHandler.

Definition at line 312 of file EventConnection.cpp.

References dtn::api::ProtocolHandler::_stream, dtn::api::ClientHandler::API_STATUS_OK, and dtn::utils::Utils::tokenize().

Here is the call graph for this function:

void dtn::api::EventConnection::setup ( void  )
virtual

Reimplemented from dtn::api::ProtocolHandler.

Definition at line 339 of file EventConnection.cpp.

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

Here is the call graph for this function:


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